1# REQUIRES: arm 2# RUN: llvm-mc -filetype=obj -triple=arm-arm-none-eabi -o %t.o < /dev/null 3 4SECTIONS { 5 .foo : { 6 bar = .; 7 *(.ARM.exidx*) 8 } 9} 10 11# RUN: ld.lld %t.o -o %t --script %s 12 13## Check we do not crash and do not set SHF_LINK_ORDER flag for .foo 14# RUN: llvm-readobj -S %t | FileCheck %s 15# CHECK: Section { 16# CHECK: Index: 17# CHECK: Name: .foo 18# CHECK-NEXT: Type: SHT_ARM_EXIDX 19# CHECK-NEXT: Flags [ 20# CHECK-NEXT: SHF_ALLOC 21# CHECK-NEXT: ] 22