[PATCH] D44259: [LLD][ELF] Use start of .got.plt as the location for _GLOBAL_OFFSET_TABLE_

Simon Atanasyan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 9 02:19:23 PST 2018


atanasyan added inline comments.


================
Comment at: test/ELF/global-offset-table-position-mips.s:8
+// The Mips _GLOBAL_OFFSET_TABLE_ should be defined at the start of the .got.plt
+// section.
 
----------------
On MIPS _GLOBAL_OFFSET_TABLE_ should point to the start of the .got section. I do not know any real test case uses this fact, but all GNU tools generates code which follow this rule.


https://reviews.llvm.org/D44259





More information about the llvm-commits mailing list