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

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 10 02:18:07 PST 2016


grimar added a comment.

In http://reviews.llvm.org/D16201#371723, @zatrazz wrote:

> This patch is required because clang only implements the tlsdesc dialect for aarch64. GCC implements both dialects, so you can:
>
> $ gcc test.c -fPIC -o test.o -c -mtls-dialect=trad


...

> Also, even is clang implements the traditional TLS dialect for aarch64, we do need to support tlsdesc one (and it is the default for aarch64).


So, that mean that without additional options, like "-mtls-dialect=trad", gcc will also produce the output with TLSDESC. That what I was pointing on about clang: it is aarch64 specific tls relocation type that we can't just avoid to support, because it is used often.


http://reviews.llvm.org/D16201





More information about the llvm-commits mailing list