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
   58
   59
   60
   61
   62
   63
   64
   65
   66
   67
   68
   69
RUN: llvm-readelf -h %p/Inputs/trivial.obj.elf-i386 \
RUN:   | FileCheck %s -check-prefix ELF32
RUN: llvm-readelf -h %p/Inputs/trivial.obj.elf-x86-64 \
RUN:   | FileCheck %s -check-prefix ELF64
RUN: llvm-readelf -h %p/Inputs/trivial.obj.elf-mipsel \
RUN:   | FileCheck %s -check-prefix MIPSEL

ELF32:      ELF Header:
ELF32-NEXT:  Magic:   7f 45 4c 46 01 01 01 03 00 00 00 00 00 00 00 00
ELF32-NEXT:  Class:                             ELF32
ELF32-NEXT:  Data:                              2's complement, little endian
ELF32-NEXT:  Version:                           1 (current)
ELF32-NEXT:  OS/ABI:                            UNIX - GNU
ELF32-NEXT:  ABI Version:                       0
ELF32-NEXT:  Type:                              REL (Relocatable file)
ELF32-NEXT:  Machine:                           Intel 80386
ELF32-NEXT:  Version:                           0x1
ELF32-NEXT:  Entry point address:               0x0
ELF32-NEXT:  Start of program headers:          0 (bytes into file)
ELF32-NEXT:  Start of section headers:          200 (bytes into file)
ELF32-NEXT:  Flags:                             0x0
ELF32-NEXT:  Size of this header:               52 (bytes)
ELF32-NEXT:  Size of program headers:            0 (bytes)
ELF32-NEXT:  Number of program headers:          0
ELF32-NEXT:  Size of section headers:           40 (bytes)
ELF32-NEXT:  Number of section headers:         10
ELF32-NEXT:  Section header string table index: 7

ELF64:     ELF Header:
ELF64-NEXT:  Magic:   7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00
ELF64-NEXT:  Class:                             ELF64
ELF64-NEXT:  Data:                              2's complement, little endian
ELF64-NEXT:  Version:                           1 (current)
ELF64-NEXT:  OS/ABI:                            UNIX - GNU
ELF64-NEXT:  ABI Version:                       0
ELF64-NEXT:  Type:                              REL (Relocatable file)
ELF64-NEXT:  Machine:                           Advanced Micro Devices X86-64
ELF64-NEXT:  Version:                           0x1
ELF64-NEXT:  Entry point address:               0x0
ELF64-NEXT:  Start of program headers:          0 (bytes into file)
ELF64-NEXT:  Start of section headers:          184 (bytes into file)
ELF64-NEXT:  Flags:                             0x0
ELF64-NEXT:  Size of this header:               64 (bytes)
ELF64-NEXT:  Size of program headers:            0 (bytes)
ELF64-NEXT:  Number of program headers:          0
ELF64-NEXT:  Size of section headers:           64 (bytes)
ELF64-NEXT:  Number of section headers:         10
ELF64-NEXT:  Section header string table index: 7

MIPSEL:     ELF Header:
MIPSEL-NEXT:  Magic:   7f 45 4c 46 01 01 01 03 00 00 00 00 00 00 00 00
MIPSEL-NEXT:  Class:                             ELF32
MIPSEL-NEXT:  Data:                              2's complement, little endian
MIPSEL-NEXT:  Version:                           1 (current)
MIPSEL-NEXT:  OS/ABI:                            UNIX - GNU
MIPSEL-NEXT:  ABI Version:                       0x0
MIPSEL-NEXT:  Type:                              REL (Relocatable file)
MIPSEL-NEXT:  Machine:                           MIPS R3000
MIPSEL-NEXT:  Version:                           0x1
MIPSEL-NEXT:  Entry point address:               0x0
MIPSEL-NEXT:  Start of program headers:          0 (bytes into file)
MIPSEL-NEXT:  Start of section headers:          172 (bytes into file)
MIPSEL-NEXT:  Flags:                             0x50001000, o32, mips32
MIPSEL-NEXT:  Size of this header:               52 (bytes)
MIPSEL-NEXT:  Size of program headers:           0 (bytes)
MIPSEL-NEXT:  Number of program headers:         0
MIPSEL-NEXT:  Size of section headers:           40 (bytes)
MIPSEL-NEXT:  Number of section headers:         9
MIPSEL-NEXT:  Section header string table index: 6