]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Implement R_AARCH64_TLS_DTPMOD64 and A_AARCH64_TLS_DTPREL64 relocations.
authormmel <mmel@FreeBSD.org>
Sat, 8 Dec 2018 14:58:17 +0000 (14:58 +0000)
committermmel <mmel@FreeBSD.org>
Sat, 8 Dec 2018 14:58:17 +0000 (14:58 +0000)
commit73763781e7203ddcac9b19f913b97014c74b4fd8
treec727b6f50b9deea07497dbef9866812943cf6ffc
parentd21951d54757db1850efef7254b87cc249227063
Implement R_AARCH64_TLS_DTPMOD64 and A_AARCH64_TLS_DTPREL64 relocations.
Although these are slightly obsolete in favor of R_AARCH64_TLSDESC,
gcc -mtls-dialect=trad still use them.

Please note that definition of TLS_DTPMOD64 and TLS_DTPREL64 are incorrectly
exchanged in GNU binutils. TLS_DTPREL64 should be encoded to 1028 (as is
defined in ARM ELF ABI) but binutils encode it to 1029. And vice versa,
TLS_DTPMOD64 should be encoded to 1029 but binutils encode it to 1028.

While I'm in, add also R_AARCH64_NONE. It can be produced as result of linker
relaxation.

MFC after: 1 week
libexec/rtld-elf/aarch64/reloc.c