1# RUN: yaml2obj %s > %t 2# RUN: llvm-objcopy -remove-section=.text.bar %t %t2 3# RUN: llvm-readobj -sections %t2 | FileCheck %s 4 5# CHECK: Index: 2 6# CHECK-NEXT: Name: .ARM.exidx.text.foo (1) 7# CHECK-NEXT: Type: SHT_ARM_EXIDX (0x70000001) 8# CHECK: Address: 0x0 9# CHECK-NEXT: Offset: 0x34 10# CHECK-NEXT: Size: 0 11# CHECK-NEXT: Link: 1 12# CHECK-NEXT: Info: 0 13 14--- !ELF 15FileHeader: 16 Class: ELFCLASS32 17 Data: ELFDATA2LSB 18 Type: ET_REL 19 Machine: EM_ARM 20 Flags: [ EF_ARM_EABI_VER5 ] 21Sections: 22 - Name: .text.bar 23 Type: SHT_PROGBITS 24 Flags: [ SHF_ALLOC, SHF_EXECINSTR ] 25 AddressAlign: 0x0000000000000004 26 Content: '' 27 - Name: .text.foo 28 Type: SHT_PROGBITS 29 Flags: [ SHF_ALLOC, SHF_EXECINSTR ] 30 AddressAlign: 0x0000000000000004 31 Content: '' 32 - Name: .ARM.exidx.text.foo 33 Type: SHT_ARM_EXIDX 34 Flags: [ SHF_ALLOC, SHF_LINK_ORDER ] 35 Link: .text.foo 36 AddressAlign: 0x0000000000000004 37 Content: '' 38Symbols: 39 Local: 40 - Name: .text.bar 41 Type: STT_SECTION 42 Section: .text.bar 43 - Name: .text.foo 44 Type: STT_SECTION 45 Section: .text.foo 46 - Name: .ARM.exidx.text.foo 47 Type: STT_SECTION 48 Section: .ARM.exidx.text.foo 49