[PATCH] D47507: [MC] [X86] Teach leaq _GLOBAL_OFFSET_TABLE(%rip), %r15 to use R_X86_64_GOTPC32 instead of R_X86_64_PC32

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 31 14:51:04 PDT 2018


craig.topper added inline comments.


================
Comment at: test/MC/ELF/relocation.s:43
         movl  $_GLOBAL_OFFSET_TABLE_, %eax
+        leaq  _GLOBAL_OFFSET_TABLE_(%rax), %r15
         movabs  $_GLOBAL_OFFSET_TABLE_, %rax
----------------
If I just add this line to the test, I get the exact output shown in the check lines without any other changes.


Repository:
  rL LLVM

https://reviews.llvm.org/D47507





More information about the llvm-commits mailing list