FreeBSD/src 4849c3a (r342113)libexec/rtld-elf rtld.c rtld.h, libexec/rtld-elf/aarch64 rtld_start.S reloc.c

Improve R_AARCH64_TLSDESC relocation.
The original code did not support dynamically loaded libraries and used
suboptimal access to TLS variables.
New implementation removes lazy resolving of TLS relocation - due to flaw
in TLSDESC design is impossible to switch resolver function at runtime
without expensive locking.

Due to this, 3 specialized resolvers are implemented:
 - load time resolver for TLS relocation from libraries loaded with main
   executable (thus with known TLS offset).
 - resolver for undefined thread weak symbols.
 - slower lazy resolver for dynamically loaded libraries with fast path for
   already resolved symbols.

PR:             228892, 232149, 233204, 232311
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D18417
DeltaFile
+125-35libexec/rtld-elf/aarch64/rtld_start.S
+64-66libexec/rtld-elf/aarch64/reloc.c
+2-1libexec/rtld-elf/sparc64/reloc.c
+1-1libexec/rtld-elf/arm/reloc.c
+1-1libexec/rtld-elf/i386/reloc.c
+1-1libexec/rtld-elf/mips/reloc.c
+1-1libexec/rtld-elf/powerpc/reloc.c
+1-1libexec/rtld-elf/powerpc64/reloc.c
+1-1libexec/rtld-elf/riscv/reloc.c
+1-1libexec/rtld-elf/rtld.c
+1-1libexec/rtld-elf/rtld.h
+1-1libexec/rtld-elf/amd64/reloc.c
+200-11112 files

UnifiedSplitRaw