diff options
Diffstat (limited to 'lld/test/ELF/linkerscript/merge-nonalloc.s')
-rw-r--r-- | lld/test/ELF/linkerscript/merge-nonalloc.s | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lld/test/ELF/linkerscript/merge-nonalloc.s b/lld/test/ELF/linkerscript/merge-nonalloc.s new file mode 100644 index 00000000000..7c48d3bc6cd --- /dev/null +++ b/lld/test/ELF/linkerscript/merge-nonalloc.s @@ -0,0 +1,14 @@ +# REQUIRES: x86 +# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o +# RUN: echo "SECTIONS { .text : { *(.text) *(.nonalloc) } }" > %t.script +# RUN: ld.lld -shared -o %t.exe %t.script %t.o +# RUN: llvm-objdump -syms %t.exe | FileCheck %s + +# CHECK: .text 00000000 nonalloc_start + +_start: + nop + +.section .nonalloc,"",@progbits +nonalloc_start: + .long 0xcafe |