Files
clang-p2996/lld/test/ELF/linkerscript/empty-link-order.test
George Rimar ebc1d1fdde [ELF] - Fix wrong "REQUIRES" in test.
Its a follow up for r327374 to fix BB.

llvm-svn: 327377
2018-03-13 08:50:36 +00:00

22 lines
475 B
Plaintext

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