llvm-project/lld/test/ELF/linkerscript/empty-link-order.test

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

22 lines
475 B
Plaintext
Raw Normal View History

# REQUIRES: arm
# RUN: llvm-mc -filetype=obj -triple=arm-arm-none-eabi -o %t.o < /dev/null
SECTIONS {
.foo : {
bar = .;
*(.ARM.exidx*)
}
}
# RUN: ld.lld %t.o -o %t --script %s
## Check we do not crash and do not set SHF_LINK_ORDER flag for .foo
# RUN: llvm-readobj -S %t | FileCheck %s
# CHECK: Section {
# CHECK: Index:
# CHECK: Name: .foo
# CHECK-NEXT: Type: SHT_ARM_EXIDX
# CHECK-NEXT: Flags [
# CHECK-NEXT: SHF_ALLOC
# CHECK-NEXT: ]