freebsd-dev/libexec/rtld-elf
Andrew Turner 7c81294224 Fix how we place each objects thread local data. The code used was based
on the Variant II code, however arm64 uses Variant I. The former placed the
thread pointer after the data, pointing at the thread control block, while
the latter places these before said data.

Because of this we need to use the size of the previous entry to calculate
where to place the current entry. We also need to reserve 16 bytes at the
start for the thread control block.

This also fixes the value of TLS_TCB_SIZE to be correct. This is the size
of two unsigned longs, i.e. 2 * 8 bytes.

While here remove the bogus adjustment of the pointer in the
R_AARCH64_TLS_TPREL64 case. It should be the offset of the data relative
to the thread pointer, including the thread control block.

Sponsored by:	ABT Systems Ltd
2015-09-01 15:57:03 +00:00
..
aarch64 Fix how we place each objects thread local data. The code used was based 2015-09-01 15:57:03 +00:00
amd64 Disable SSE in libthr 2015-08-05 12:53:55 +00:00
arm IFUNC symbol type shall be processed for non-PLT relocations, 2014-08-29 09:29:10 +00:00
i386 Disable SSE in libthr 2015-08-05 12:53:55 +00:00
mips MIPS rtld: report missing symbol rather than segfaulting 2015-04-05 14:06:11 +00:00
powerpc Apply r246556 to powerpc: 2015-01-06 03:49:22 +00:00
powerpc64 IFUNC symbol type shall be processed for non-PLT relocations, 2014-08-29 09:29:10 +00:00
sparc64 IFUNC symbol type shall be processed for non-PLT relocations, 2014-08-29 09:29:10 +00:00
tests Fix "make checkdpadd" by "spoofing" DPADD 2014-08-26 09:01:11 +00:00
debug.c
debug.h Remove historical GNUC test 2015-05-06 15:29:11 +00:00
libmap.c
libmap.h
Makefile Change compiler setting to make default visibility of the symbols for 2015-03-29 18:53:21 +00:00
Makefile.depend new depends 2015-06-16 23:37:19 +00:00
malloc.c
map_object.c
rtld_lock.c Change compiler setting to make default visibility of the symbols for 2015-03-29 18:53:21 +00:00
rtld_lock.h Change compiler setting to make default visibility of the symbols for 2015-03-29 18:53:21 +00:00
rtld_printf.c
rtld_printf.h
rtld_tls.h Change compiler setting to make default visibility of the symbols for 2015-03-29 18:53:21 +00:00
rtld.1
rtld.c Ensure we use calculate_first_tls_offset, even if the main program doesn't 2015-09-01 15:43:56 +00:00
rtld.h Implement support -z global linker option. It marks the shared object 2015-04-15 08:16:34 +00:00
Symbol.map Add rtld private interface for dso to detect dynamic loading 2015-01-03 18:09:53 +00:00
xmalloc.c