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