aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/linkerscript/expr-invalid-sec.s
blob: 9476be3c3b14b47c27e57cb419ac48c7e518c683 (plain) (blame)
1
2
3
4
5
6
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
# RUN: echo "SECTIONS { foo = ADDR(.text) + ADDR(.text); };" > %t.script
# RUN: not ld.lld -o %t.so --script %t.script %t.o -shared 2>&1 | FileCheck %s

# CHECK: At least one side of the expression must be absolute