diff options
-rw-r--r-- | lld/test/ELF/startstop.s | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lld/test/ELF/startstop.s b/lld/test/ELF/startstop.s index d0e88df4e7e..3ef0028fb30 100644 --- a/lld/test/ELF/startstop.s +++ b/lld/test/ELF/startstop.s @@ -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 |