freebsd-dev/libexec/rtld-elf
Andreas Tobler 953cba365f This commit reverts 338930. The approach was wrong.
Fix the issue with subtracting the TLS_TCB_SIZE too when we are trying to get
the 'where' in the R_PPC_TPREL32 case. At allocation time we added an offset
and the TLS_TCB_SIZE. This has to be subtracted as well.

Now all the issues reported are fixed. Tests were done on G4 and G5 PowerMac's.
Additionally I ran the tls tests from the gcc test suite and made sure the
results are as good as pre 338486.

Thanks to tuexen for reporting the malfunction and for patient testing.
Also testing thanks goes to jhibbits.

Reported by:	tuexen
Discussed with:	jhibbits, nwhitehorn
Approved by:	re (gjb)
Pointyhat to:	andreast
2018-10-01 18:46:35 +00:00
..
aarch64 Add STT_GNU_IFUNC and R_AARCH64_IRELATIVE support on arm64. 2018-10-01 14:02:29 +00:00
amd64 o Let rtld(1) set up psABI user trap handlers prior to executing the 2018-02-03 23:14:11 +00:00
arm Rework rtld's TLS Variant I implementation to match r326794 2018-09-05 23:23:16 +00:00
i386 o Let rtld(1) set up psABI user trap handlers prior to executing the 2018-02-03 23:14:11 +00:00
mips Rework rtld's TLS Variant I implementation to match r326794 2018-09-05 23:23:16 +00:00
powerpc This commit reverts 338930. The approach was wrong. 2018-10-01 18:46:35 +00:00
powerpc64 Rework rtld's TLS Variant I implementation to match r326794 2018-09-05 23:23:16 +00:00
riscv Rework rtld's TLS Variant I implementation to match r326794 2018-09-05 23:23:16 +00:00
sparc64 o Let rtld(1) set up psABI user trap handlers prior to executing the 2018-02-03 23:14:11 +00:00
tests Fix regression tests broken by r337067. 2018-08-02 11:55:16 +00:00
debug.c libexec: adoption of SPDX licensing ID tags. 2017-11-27 15:25:02 +00:00
debug.h libexec: adoption of SPDX licensing ID tags. 2017-11-27 15:25:02 +00:00
libmap.c When doing lm_add(), check for duplicates. 2018-09-26 21:27:08 +00:00
libmap.conf Move libmap.conf to libexec/rtld-elf/ 2018-09-18 00:25:00 +00:00
libmap.h Make the directory mapping functionality, which was previously only 2013-09-21 21:03:52 +00:00
Makefile Move libmap.conf to libexec/rtld-elf/ 2018-09-18 00:25:00 +00:00
Makefile.depend new depends 2015-06-16 23:37:19 +00:00
malloc.c Make sure the rtld(1) error messages go to stderr, not stdout. 2018-08-02 07:43:28 +00:00
map_object.c libexec: adoption of SPDX licensing ID tags. 2017-11-27 15:25:02 +00:00
paths.h Make sure the rtld(1) error messages go to stderr, not stdout. 2018-08-02 07:43:28 +00:00
rtld_lock.c libexec: adoption of SPDX licensing ID tags. 2017-11-27 15:25:02 +00:00
rtld_lock.h libexec: adoption of SPDX licensing ID tags. 2017-11-27 15:25:02 +00:00
rtld_printf.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
rtld_printf.h libexec: adoption of SPDX licensing ID tags. 2017-11-27 15:25:02 +00:00
rtld_tls.h libexec: adoption of SPDX licensing ID tags. 2017-11-27 15:25:02 +00:00
rtld_utrace.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
rtld.1 Add serial comma. 2017-09-01 16:56:37 +00:00
rtld.c Provide refobj context when doing libmap substitution inside 2018-09-26 21:28:14 +00:00
rtld.h o Let rtld(1) set up psABI user trap handlers prior to executing the 2018-02-03 23:14:11 +00:00
Symbol.map Add rtld private interface for dso to detect dynamic loading 2015-01-03 18:09:53 +00:00
xmalloc.c libexec: adoption of SPDX licensing ID tags. 2017-11-27 15:25:02 +00:00