mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 14:20:07 +00:00
htl: Use weak aliases for public symbols
Strong definitions of flockfile, funlockfile, ftrylockfile can conflict with application symbols when linking statically.
This commit is contained in:
parent
49dddc3e99
commit
cfba5dbb10
@ -1,3 +1,8 @@
|
||||
2018-07-26 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
* htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
|
||||
aliases for symbols not in the implementation namespace.
|
||||
|
||||
2018-07-25 Carlos O'Donell <carlos@redhat.com>
|
||||
|
||||
[BZ #23393]
|
||||
|
@ -53,8 +53,8 @@ int _IO_ftrylockfile (FILE *)
|
||||
__attribute__ ((alias ("_cthreads_ftrylockfile")));
|
||||
|
||||
void flockfile (FILE *)
|
||||
__attribute__ ((alias ("_cthreads_flockfile")));
|
||||
__attribute__ ((weak, alias ("_cthreads_flockfile")));
|
||||
void funlockfile (FILE *)
|
||||
__attribute__ ((alias ("_cthreads_funlockfile")));
|
||||
__attribute__ ((weak, alias ("_cthreads_funlockfile")));
|
||||
int ftrylockfile (FILE *)
|
||||
__attribute__ ((alias ("_cthreads_ftrylockfile")));
|
||||
__attribute__ ((weak, alias ("_cthreads_ftrylockfile")));
|
||||
|
Loading…
Reference in New Issue
Block a user