diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-04-13 16:33:02 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-04-13 16:33:02 +0000 |
| commit | 9b46861eae538df98b93b7dbaa72d549d46035cc (patch) | |
| tree | 24aca168ffc6345213797107fa55f0a219cfcfdb | |
| parent | b8a1ecfc62dc36cc7cc736e0c29493f276d4620e (diff) | |
| download | bcm5719-llvm-9b46861eae538df98b93b7dbaa72d549d46035cc.tar.gz bcm5719-llvm-9b46861eae538df98b93b7dbaa72d549d46035cc.zip | |
Test dynamic relocations pointing to __stop_ symbols.
llvm-svn: 266207
| -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 |

