aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86_64
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-10 23:35:19 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-11 02:36:22 +0100
commit3d3316b1dee885153d44210b2e95dba68d00613a (patch)
tree997c7734e51a76d2c11d0bfb5227f463c75df2e2 /sysdeps/x86_64
parenta40b18b2330026cedc07348481bf3219f668adca (diff)
downloadglibc-3d3316b1dee885153d44210b2e95dba68d00613a.tar
glibc-3d3316b1dee885153d44210b2e95dba68d00613a.tar.gz
glibc-3d3316b1dee885153d44210b2e95dba68d00613a.tar.bz2
glibc-3d3316b1dee885153d44210b2e95dba68d00613a.zip
hurd: keep only required PLTs in ld.so
We need NO_RTLD_HIDDEN because of the need for PLT calls in ld.so. See Roland's comment in https://sourceware.org/bugzilla/show_bug.cgi?id=15605 "in the Hurd it's crucial that calls like __mmap be the libc ones instead of the rtld-local ones after the bootstrap phase, when the dynamic linker is being used for dlopen and the like." We used to just avoid all hidden use in the rtld ; this commit switches to keeping only those that should use PLT calls, i.e. essentially those defined in sysdeps/mach/hurd/dl-sysdep.c: __assert_fail __assert_perror_fail __*stat64 _exit This fixes a few startup issues, notably the call to __tunable_get_val that is made before PLTs are set up.
Diffstat (limited to 'sysdeps/x86_64')
-rw-r--r--sysdeps/x86_64/dl-tlsdesc.S4
1 files changed, 0 insertions, 4 deletions
diff --git a/sysdeps/x86_64/dl-tlsdesc.S b/sysdeps/x86_64/dl-tlsdesc.S
index 512a704fac..2535c88946 100644
--- a/sysdeps/x86_64/dl-tlsdesc.S
+++ b/sysdeps/x86_64/dl-tlsdesc.S
@@ -131,11 +131,7 @@ _dl_tlsdesc_dynamic:
movq %r10, 40(%rsp)
movq %r11, 48(%rsp)
/* %rdi already points to the tlsinfo data structure. */
-#ifdef NO_RTLD_HIDDEN
- call JUMPTARGET (__tls_get_addr)
-#else
call HIDDEN_JUMPTARGET (__tls_get_addr)
-#endif
movq 8(%rsp), %rdx
movq 16(%rsp), %rcx
movq 24(%rsp), %r8