diff options
Diffstat (limited to 'lld/test/ELF/linkerscript/memory-include.test')
-rw-r--r-- | lld/test/ELF/linkerscript/memory-include.test | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lld/test/ELF/linkerscript/memory-include.test b/lld/test/ELF/linkerscript/memory-include.test index 340328225bd..aa2f1f88647 100644 --- a/lld/test/ELF/linkerscript/memory-include.test +++ b/lld/test/ELF/linkerscript/memory-include.test @@ -4,8 +4,9 @@ # RUN: echo '.section .data,"aw"; .quad 0' >> %t.s # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %t.s -o %t.o -# RUN: echo "RAM2 (rwx): ORIGIN = 0x3000, LENGTH = 0x100" > %t.inc -# RUN: ld.lld -o %t.elf --script %s %t.o -L %T +# RUN: rm -rf %t.dir && mkdir -p %t.dir +# RUN: echo "RAM2 (rwx): ORIGIN = 0x3000, LENGTH = 0x100" > %t.dir/inc.script +# RUN: ld.lld -o %t.elf --script %s %t.o -L %t.dir # RUN: llvm-objdump -section-headers %t.elf | FileCheck %s # CHECK: .data 00000008 0000000000002000 DATA # CHECK: .data2 00000008 0000000000003000 DATA @@ -13,7 +14,7 @@ MEMORY { ROM (rwx): ORIGIN = 0x1000, LENGTH = 0x100 RAM (rwx): ORIGIN = 0x2000, LENGTH = 0x100 - INCLUDE "memory-include.test.tmp.inc" + INCLUDE "inc.script" } SECTIONS { |