diff options
Diffstat (limited to 'test/ELF/linkerscript/expr-invalid-sec.test')
| -rw-r--r-- | test/ELF/linkerscript/expr-invalid-sec.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ELF/linkerscript/expr-invalid-sec.test b/test/ELF/linkerscript/expr-invalid-sec.test new file mode 100644 index 000000000000..946062a0c575 --- /dev/null +++ b/test/ELF/linkerscript/expr-invalid-sec.test @@ -0,0 +1,9 @@ +# REQUIRES: x86 +# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux /dev/null -o %t.o +# RUN: not ld.lld -o %t.so --script %s %t.o -shared 2>&1 | FileCheck %s + +# CHECK: error: {{.*}}.test:8: at least one side of the expression must be absolute + +SECTIONS { + foo = ADDR(.text) + ADDR(.text); +}; |
