[PATCH] D25721: [LLD][ARM] Allow relative exceptions relocations in shared libraries
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 18 11:44:12 PDT 2016
ruiu added a comment.
I wonder why we are mapping R_AARCH64_TLSDESC_CALL to R_HINT. The other relocation that is mapped to R_HINT is R_MIPS_JALR, but that relocation is purely a hint -- the linker is allowed to do a peephole optimization by rewriting the instructions pointed by the relocation, but it's allowed to not do. On the other hand, we need to do something for TLS generation for R_AARCH64_TLSDESC_CALL. It seems that two semantically different relocations are mapped to one relocation type.
Maybe you could create a new relocation type for R_AARCH64_TLSDESC_CALL and then map R_ARM_NONE to R_HINT?
More information about the llvm-commits