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
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
# RUN: yaml2obj %s > %t
# RUN: llvm-objcopy -R .symtab %t %t2
# RUN: llvm-readobj --file-headers --sections %t2 | FileCheck %s

!ELF
FileHeader:
  Class:           ELFCLASS64
  Data:            ELFDATA2LSB
  Type:            ET_REL
  Machine:         EM_X86_64

#CHECK: SectionHeaderCount: 3

#CHECK:        Sections [
#CHECK-NEXT:     Section {
#CHECK-NEXT:       Index: 0
#CHECK-NEXT:       Name:  (0)
#CHECK-NEXT:       Type: SHT_NULL (0x0)
#CHECK-NEXT:       Flags [ (0x0)
#CHECK-NEXT:       ]
#CHECK-NEXT:       Address: 0x0
#CHECK-NEXT:       Offset: 0x0
#CHECK-NEXT:       Size: 0
#CHECK-NEXT:       Link: 0
#CHECK-NEXT:       Info: 0
#CHECK-NEXT:       AddressAlignment: 0
#CHECK-NEXT:       EntrySize: 0
#CHECK-NEXT:     }
#CHECK-NEXT:     Section {
#CHECK-NEXT:       Index: 1
#CHECK-NEXT:       Name: .strtab
#CHECK-NEXT:       Type: SHT_STRTAB (0x3)
#CHECK-NEXT:       Flags [ (0x0)
#CHECK-NEXT:       ]
#CHECK-NEXT:       Address: 0x0
#CHECK-NEXT:       Offset:
#CHECK-NEXT:       Size: 1
#CHECK-NEXT:       Link: 0
#CHECK-NEXT:       Info: 0
#CHECK-NEXT:       AddressAlignment: 1
#CHECK-NEXT:       EntrySize: 0
#CHECK-NEXT:     }
#CHECK-NEXT:     Section {
#CHECK-NEXT:       Index: 2
#CHECK-NEXT:       Name: .shstrtab (1)
#CHECK-NEXT:       Type: SHT_STRTAB (0x3)
#CHECK-NEXT:       Flags [ (0x0)
#CHECK-NEXT:       ]
#CHECK-NEXT:       Address: 0x0
#CHECK-NEXT:       Offset:
#CHECK-NEXT:       Size:
#CHECK-NEXT:       Link: 0
#CHECK-NEXT:       Info: 0
#CHECK-NEXT:       AddressAlignment: 1
#CHECK-NEXT:       EntrySize: 0
#CHECK-NEXT:     }
#CHECK-NEXT:   ]