2018-03-13 16:50:36 +08:00
|
|
|
# REQUIRES: arm
|
2018-03-13 16:32:56 +08:00
|
|
|
# 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
|
2019-05-01 13:49:01 +08:00
|
|
|
# RUN: llvm-readobj -S %t | FileCheck %s
|
2018-03-13 16:32:56 +08:00
|
|
|
# CHECK: Section {
|
|
|
|
# CHECK: Index:
|
|
|
|
# CHECK: Name: .foo
|
|
|
|
# CHECK-NEXT: Type: SHT_ARM_EXIDX
|
|
|
|
# CHECK-NEXT: Flags [
|
|
|
|
# CHECK-NEXT: SHF_ALLOC
|
|
|
|
# CHECK-NEXT: ]
|