mirror of
https://sourceware.org/git/glibc.git
synced 2026-01-06 11:51:29 +03:00
Fix static build when configured with --disable-hidden-plt
Fixes BZ #15337. Static builds fail with the following warning: /home/tools/glibc/glibc/nptl/../nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S:80: undefined reference to `__GI___pthread_unwind' When the source is configured with --disable-hidden-plt. This is because the preprocessor conditional in cancellation.S only checks if the build is for SHARED, whereas hidden_def is defined appropriately only for a SHARED build that will have symbol versioning *and* hidden defs are enabled. The last case is false here.
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
2013-04-04 Siddhesh Poyarekar <siddhesh@redhat.com>
|
||||
|
||||
[BZ #15337]
|
||||
* sysdeps/unix/sysv/linux/x86_64/cancellation.S
|
||||
[IS_IN_libpthread]
|
||||
[SHARED && defined DO_VERSIONING && !defined NO_HIDDEN]: Mark
|
||||
__pthread_unwind hidden.
|
||||
|
||||
2013-03-28 Roland McGrath <roland@hack.frob.com>
|
||||
|
||||
* pthread_create.c (start_thread) [!SHARED]:
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#include "lowlevellock.h"
|
||||
|
||||
#ifdef IS_IN_libpthread
|
||||
# ifdef SHARED
|
||||
# if defined SHARED && defined DO_VERSIONING && !defined NO_HIDDEN
|
||||
# define __pthread_unwind __GI___pthread_unwind
|
||||
# endif
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user