# 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: ]