diff options
Diffstat (limited to 'test/ELF/linkerscript/memory2.s')
| -rw-r--r-- | test/ELF/linkerscript/memory2.s | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/ELF/linkerscript/memory2.s b/test/ELF/linkerscript/memory2.s new file mode 100644 index 000000000000..2e7381fb8914 --- /dev/null +++ b/test/ELF/linkerscript/memory2.s @@ -0,0 +1,14 @@ +# REQUIRES: x86 +# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t +# RUN: echo "MEMORY { ram (rwx) : ORIGIN = 0, LENGTH = 2K } \ +# RUN: SECTIONS { .text : { *(.text*) } > ram }" > %t.script +# RUN: ld.lld -o %t2 --script %t.script %t + +.text +.global _start +_start: + .zero 1024 + +.section .text.foo,"ax",%progbits +foo: + nop |
