1 ; Test the sh_link in Elf32_Shdr.
3 ; The .ARM.exidx section should be linked with corresponding text section.
4 ; The sh_link in Elf32_Shdr should be filled with the section index of
7 ; RUN: llc -mtriple arm-unknown-linux-gnueabi \
8 ; RUN: -arm-enable-ehabi -arm-enable-ehabi-descriptors \
9 ; RUN: -filetype=obj -o - %s \
10 ; RUN: | llvm-readobj -s \
13 define void @test1() nounwind {
18 define void @test2() nounwind section ".test_section" {
26 ; CHECK-NEXT: Name: .text (16)
29 ; CHECK: Name: .ARM.exidx (5)
30 ; CHECK-NEXT: Type: SHT_ARM_EXIDX
31 ; CHECK-NEXT: Flags [ (0x82)
32 ; CHECK-NEXT: SHF_ALLOC
33 ; CHECK-NEXT: SHF_LINK_ORDER
35 ; CHECK-NEXT: Address: 0x0
36 ; CHECK-NEXT: Offset: 0x5C
40 ; CHECK-NEXT: AddressAlignment: 4
44 ; CHECK-NEXT: Name: .test_section (57)
47 ; CHECK: Name: .ARM.exidx.test_section (47)
48 ; CHECK-NEXT: Type: SHT_ARM_EXIDX
49 ; CHECK-NEXT: Flags [ (0x82)
50 ; CHECK-NEXT: SHF_ALLOC
51 ; CHECK-NEXT: SHF_LINK_ORDER
53 ; CHECK-NEXT: Address: 0x0
54 ; CHECK-NEXT: Offset: 0x68
58 ; CHECK-NEXT: AddressAlignment: 4