diff options
Diffstat (limited to 'test/ELF/linkerscript-symbol-conflict.s')
-rw-r--r-- | test/ELF/linkerscript-symbol-conflict.s | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ELF/linkerscript-symbol-conflict.s b/test/ELF/linkerscript-symbol-conflict.s new file mode 100644 index 000000000000..30186ed5cb87 --- /dev/null +++ b/test/ELF/linkerscript-symbol-conflict.s @@ -0,0 +1,11 @@ +# REQUIRES: x86 +# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t + +# RUN: echo "SECTIONS {.text : {*(.text.*)} end = .;}" > %t.script +# RUN: ld.lld -o %t1 --script %t.script %t +# RUN: llvm-objdump -t %t1 | FileCheck %s +# CHECK: 0000000000000121 *ABS* 00000000 end + +.global _start +_start: + nop |