[PATCH] D42843: Ensure that Elf_Rel addends are always written for dynamic relocations

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 2 07:11:41 PST 2018


arichardson added inline comments.


================
Comment at: test/ELF/convert-rel-rela-addends.s:103
+.data
+.ifdef IS_64
+.quad foo + 0x5544
----------------
This ugly hack is needed because LLD will reject R_X86_64_32 relocations in shared objects but 16 and 64 bit is fine. Not sure why this is the case as the dynamic linker can just write the correct value to data section.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D42843





More information about the llvm-commits mailing list