[lld] r266207 - Test dynamic relocations pointing to __stop_ symbols.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 13 09:33:02 PDT 2016
Author: rafael
Date: Wed Apr 13 11:33:02 2016
New Revision: 266207
URL: http://llvm.org/viewvc/llvm-project?rev=266207&view=rev
Log:
Test dynamic relocations pointing to __stop_ symbols.
Modified:
lld/trunk/test/ELF/startstop.s
Modified: lld/trunk/test/ELF/startstop.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/startstop.s?rev=266207&r1=266206&r2=266207&view=diff
==============================================================================
--- lld/trunk/test/ELF/startstop.s (original)
+++ lld/trunk/test/ELF/startstop.s Wed Apr 13 11:33:02 2016
@@ -20,7 +20,13 @@
// DISASM: 1014: 90 nop
-// SYMBOL: Relocations [
+// SYMBOL: Relocations [
+// SYMBOL-NEXT: Section ({{.*}}) .rela.dyn {
+// SYMBOL-NEXT: 0x1015 R_X86_64_RELATIVE - 0x1035
+// SYMBOL-NEXT: 0x101D R_X86_64_RELATIVE - 0x1036
+// SYMBOL-NEXT: 0x1025 R_X86_64_RELATIVE - 0x1025
+// SYMBOL-NEXT: 0x102D R_X86_64_RELATIVE - 0x1026
+// SYMBOL-NEXT: }
// SYMBOL-NEXT: ]
// SYMBOL: Symbol {
@@ -59,3 +65,11 @@ _start:
nop
nop
nop
+
+.section zed1, "ax"
+ .quad __stop_zed2
+ .quad __stop_zed2 + 1
+
+.section zed2, "ax"
+ .quad __stop_zed1
+ .quad __stop_zed1 + 1
More information about the llvm-commits
mailing list