mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-09 04:11:27 +08:00
8644588807
Normally, TLS relocations against local symbols are optimised by the linker to be absolute. However, gold does not do this, and so it is possible to end up with, for example, R_SPARC_TLS_DTPMOD64 referring to a local symbol. Since sym_map is left as null in elf_machine_rela for the special local symbol case, the relocation handling thinks it has nothing to do, and so the module gets left as 0. Havoc then ensues when the variable in question is accessed. Before this fix, the main_local_gold program would receive a SIGBUS on sparc64, and SIGSEGV on powerpc32. With this fix applied, that test now passes like the rest of them. * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Assign sym_map to be map for local symbols, as TLS relocations use sym_map to determine whether the symbol is defined and to extract the TLS information. * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise. * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise. |
||
---|---|---|
.. | ||
bits | ||
fpu | ||
soft-fp | ||
sparcv8 | ||
sparcv9 | ||
__longjmp.S | ||
add_n.S | ||
addmul_1.S | ||
alloca.S | ||
atomic-machine.h | ||
backtrace.h | ||
bsd-_setjmp.S | ||
bsd-setjmp.S | ||
bzero.c | ||
divrem.m4 | ||
dl-irel.h | ||
dl-machine.h | ||
dl-plt.h | ||
dl-trampoline.S | ||
dotmul.S | ||
e_sqrt.c | ||
ieee754.h | ||
Implies | ||
jmpbuf-offsets.h | ||
jmpbuf-unwind.h | ||
lll_timedlock_wait.c | ||
lll_timedwait_tid.c | ||
lowlevellock.c | ||
lshift.S | ||
Makefile | ||
memchr.S | ||
memcpy.S | ||
memset.S | ||
mul_1.S | ||
pthread_barrier_wait.c | ||
pthread_spin_lock.S | ||
pthread_spin_trylock.S | ||
pthreaddef.h | ||
rem.S | ||
rshift.S | ||
sdiv.S | ||
sem_post.c | ||
sem_waitcommon.c | ||
setjmp.S | ||
stackguard-macros.h | ||
start.S | ||
stpcpy.S | ||
strcat.S | ||
strchr.S | ||
strcmp.S | ||
strcpy.S | ||
strlen.S | ||
strrchr.c | ||
sub_n.S | ||
submul_1.S | ||
tls-macros.h | ||
tst-audit.h | ||
udiv.S | ||
umul.S | ||
urem.S | ||
Versions |