[PATCH] D16201: [ELF/AArch64] - Implemented set of R_AARCH64_TLSDESC_* relocations.

Adhemerval Zanella via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 10 02:35:53 PST 2016


zatrazz added a comment.

And as a side note, x86_64 does have tlsdesc abi dialect implemented by gcc. Using the same example:

$ gcc test3.c -fPIC -c -mtls-dialect=gnu2
$ readelf -r test3.o

Relocation section '.rela.text' at offset 0x5b8 contains 2 entries:

  Offset          Info           Type           Sym. Value    Sym. Name + Addend

000000000007  000900000022 R_X86_64_GOTPC32_ 0000000000000000 foo - 4
00000000000b  000900000023 R_X86_64_TLSDESC_ 0000000000000000 foo + 0

It does not trigger with object built with clang because it only implementes the traditional TLS argument.


http://reviews.llvm.org/D16201





More information about the llvm-commits mailing list