1 RUN: llvm-readobj -h %p/Inputs/trivial.obj.elf-i386 --elf-output-style=GNU \
2 RUN: | FileCheck %s -check-prefix ELF32
3 RUN: llvm-readobj -h %p/Inputs/trivial.obj.elf-x86-64 --elf-output-style=GNU \
4 RUN: | FileCheck %s -check-prefix ELF64
5 RUN: llvm-readobj -h %p/Inputs/trivial.obj.elf-mipsel --elf-output-style=GNU \
6 RUN: | FileCheck %s -check-prefix MIPSEL
9 ELF32-NEXT: Magic: 7f 45 4c 46 01 01 01 03 00 00 00 00 00 00 00 00
10 ELF32-NEXT: Class: ELF32
11 ELF32-NEXT: Data: 2's complement, little endian
12 ELF32-NEXT: Version: 1 (current)
13 ELF32-NEXT: OS/ABI: UNIX - GNU
14 ELF32-NEXT: ABI Version: 0
15 ELF32-NEXT: Type: REL (Relocatable file)
16 ELF32-NEXT: Machine: Intel 80386
17 ELF32-NEXT: Version: 0x1
18 ELF32-NEXT: Entry point address: 0x0
19 ELF32-NEXT: Start of program headers: 0 (bytes into file)
20 ELF32-NEXT: Start of section headers: 200 (bytes into file)
21 ELF32-NEXT: Flags: 0x0
22 ELF32-NEXT: Size of this header: 52 (bytes)
23 ELF32-NEXT: Size of program headers: 0 (bytes)
24 ELF32-NEXT: Number of program headers: 0
25 ELF32-NEXT: Size of section headers: 40 (bytes)
26 ELF32-NEXT: Number of section headers: 10
27 ELF32-NEXT: Section header string table index: 7
30 ELF64-NEXT: Magic: 7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00
31 ELF64-NEXT: Class: ELF64
32 ELF64-NEXT: Data: 2's complement, little endian
33 ELF64-NEXT: Version: 1 (current)
34 ELF64-NEXT: OS/ABI: UNIX - GNU
35 ELF64-NEXT: ABI Version: 0
36 ELF64-NEXT: Type: REL (Relocatable file)
37 ELF64-NEXT: Machine: Advanced Micro Devices X86-64
38 ELF64-NEXT: Version: 0x1
39 ELF64-NEXT: Entry point address: 0x0
40 ELF64-NEXT: Start of program headers: 0 (bytes into file)
41 ELF64-NEXT: Start of section headers: 184 (bytes into file)
42 ELF64-NEXT: Flags: 0x0
43 ELF64-NEXT: Size of this header: 64 (bytes)
44 ELF64-NEXT: Size of program headers: 0 (bytes)
45 ELF64-NEXT: Number of program headers: 0
46 ELF64-NEXT: Size of section headers: 64 (bytes)
47 ELF64-NEXT: Number of section headers: 10
48 ELF64-NEXT: Section header string table index: 7
51 MIPSEL-NEXT: Magic: 7f 45 4c 46 01 01 01 03 00 00 00 00 00 00 00 00
52 MIPSEL-NEXT: Class: ELF32
53 MIPSEL-NEXT: Data: 2's complement, little endian
54 MIPSEL-NEXT: Version: 1 (current)
55 MIPSEL-NEXT: OS/ABI: UNIX - GNU
56 MIPSEL-NEXT: ABI Version: 0x0
57 MIPSEL-NEXT: Type: REL (Relocatable file)
58 MIPSEL-NEXT: Machine: MIPS R3000
59 MIPSEL-NEXT: Version: 0x1
60 MIPSEL-NEXT: Entry point address: 0x0
61 MIPSEL-NEXT: Start of program headers: 0 (bytes into file)
62 MIPSEL-NEXT: Start of section headers: 172 (bytes into file)
63 MIPSEL-NEXT: Flags: 0x50001000, o32, mips32
64 MIPSEL-NEXT: Size of this header: 52 (bytes)
65 MIPSEL-NEXT: Size of program headers: 0 (bytes)
66 MIPSEL-NEXT: Number of program headers: 0
67 MIPSEL-NEXT: Size of section headers: 40 (bytes)
68 MIPSEL-NEXT: Number of section headers: 9
69 MIPSEL-NEXT: Section header string table index: 6