reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
# RUN: yaml2obj %s > %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