llvm-project/lld/test/ELF/linkerscript/address-expr-symbols.s

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
663 B
ArmAsm
Raw Normal View History

# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
# RUN: echo "SECTIONS { .bar (foo) : { } };" > %t.script
# RUN: not ld.lld -o /dev/null --script %t.script %t.o 2>&1 | FileCheck %s
# CHECK: symbol not found: foo
# RUN: echo "SECTIONS { .bar : AT(foo) { } };" > %t.script
# RUN: not ld.lld -o /dev/null --script %t.script %t.o 2>&1 | FileCheck %s
# RUN: echo "SECTIONS { .bar : ALIGN(foo) { } };" > %t.script
# RUN: not ld.lld -o /dev/null --script %t.script %t.o 2>&1 | FileCheck %s
# RUN: echo "SECTIONS { .bar : SUBALIGN(foo) { } };" > %t.script
# RUN: not ld.lld -o /dev/null --script %t.script %t.o 2>&1 | FileCheck %s