llvm-for-llvmta/test/tools/llvm-objcopy/ELF/armexidx-link.test

48 lines
1.5 KiB
Plaintext
Raw Normal View History

2022-04-25 10:02:23 +02:00
# RUN: yaml2obj %s -o %t
# RUN: llvm-objcopy --remove-section=.text.bar %t %t2
# RUN: llvm-readobj --sections %t2 | FileCheck %s
# CHECK: Index: 2
# CHECK-NEXT: Name: .ARM.exidx.text.foo (1)
# CHECK-NEXT: Type: SHT_ARM_EXIDX (0x70000001)
# CHECK: Address: 0x0
# CHECK-NEXT: Offset: 0x34
# CHECK-NEXT: Size: 0
# CHECK-NEXT: Link: 1
# CHECK-NEXT: Info: 0
--- !ELF
FileHeader:
Class: ELFCLASS32
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_ARM
Flags: [ EF_ARM_EABI_VER5 ]
Sections:
- Name: .text.bar
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
AddressAlign: 0x0000000000000004
Content: ''
- Name: .text.foo
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
AddressAlign: 0x0000000000000004
Content: ''
- Name: .ARM.exidx.text.foo
Type: SHT_ARM_EXIDX
Flags: [ SHF_ALLOC, SHF_LINK_ORDER ]
Link: .text.foo
AddressAlign: 0x0000000000000004
Content: ''
Symbols:
- Name: .text.bar
Type: STT_SECTION
Section: .text.bar
- Name: .text.foo
Type: STT_SECTION
Section: .text.foo
- Name: .ARM.exidx.text.foo
Type: STT_SECTION
Section: .ARM.exidx.text.foo