1RUN: llvm-readobj -s %p/Inputs/relocs.obj.elf-i386 --elf-output-style=GNU \
2RUN:   | FileCheck %s -check-prefix ELF32
3RUN: llvm-readobj -S %p/Inputs/relocs.obj.elf-x86_64 --elf-output-style=GNU \
4RUN:   | FileCheck %s -check-prefix ELF64
5RUN: llvm-readobj --wide --sections \
6RUN:   %p/Inputs/relocs.obj.elf-x86_64 --elf-output-style=GNU \
7RUN:   | FileCheck %s -check-prefix ELF64
8RUN: llvm-readobj -W --sections \
9RUN:   %p/Inputs/relocs.obj.elf-x86_64 --elf-output-style=GNU \
10RUN:   | FileCheck %s -check-prefix ELF64
11RUN: llvm-readelf -W -S %p/Inputs/relocs.obj.elf-x86_64 \
12RUN:   | FileCheck %s -check-prefix ELF64
13
14ELF32:    Section Headers:
15ELF32-NEXT:      [Nr] Name              Type            Address  Off    Size   ES Flg Lk Inf Al
16ELF32-NEXT:      [ 0]                   NULL            00000000 000000 000000 00      0   0  0
17ELF32-NEXT:      [ 1] .text             PROGBITS        00000000 000034 0000f6 00  AX  0   0  4
18ELF32-NEXT:      [ 2] .rel.text         REL             00000000 000318 000148 08      6   1  4
19ELF32-NEXT:      [ 3] .data             PROGBITS        00000000 00012c 000000 00  WA  0   0  4
20ELF32-NEXT:      [ 4] .bss              NOBITS          00000000 00012c 000000 00  WA  0   0  4
21ELF32-NEXT:      [ 5] .shstrtab         STRTAB          00000000 00012c 000030 00      0   0  1
22ELF32-NEXT:      [ 6] .symtab           SYMTAB          00000000 00029c 000060 10      7   4  4
23ELF32-NEXT:      [ 7] .strtab           STRTAB          00000000 0002fc 00001b 00      0   0  1
24ELF32-NEXT:    Key to Flags:
25ELF32-NEXT:      W (write), A (alloc), X (execute), M (merge), S (strings), l (large)
26ELF32-NEXT:      I (info), L (link order), G (group), T (TLS), E (exclude), x (unknown)
27ELF32-NEXT:      O (extra OS processing required) o (OS specific), p (processor specific)
28
29ELF64:    There are 8 section headers, starting at offset 0x180:
30ELF64:    Section Headers:
31ELF64-NEXT:      [Nr] Name              Type            Address          Off    Size   ES Flg Lk Inf Al
32ELF64-NEXT:      [ 0]                   NULL            0000000000000000 000000 000000 00     0   0  0
33ELF64-NEXT:      [ 1] .text             PROGBITS        0000000000000000 000040 00010a 00  AX 0   0  4
34ELF64-NEXT:      [ 2] .rela.text        RELA            0000000000000000 000430 000390 18     6   1  8
35ELF64-NEXT:      [ 3] .data             PROGBITS        0000000000000000 00014c 000000 00  WA 0   0  4
36ELF64-NEXT:      [ 4] .bss              NOBITS          0000000000000000 00014c 000000 00  WA 0   0  4
37ELF64-NEXT:      [ 5] .shstrtab         STRTAB          0000000000000000 00014c 000031 00     0   0  1
38ELF64-NEXT:      [ 6] .symtab           SYMTAB          0000000000000000 000380 000090 18     7   4  8
39ELF64-NEXT:      [ 7] .strtab           STRTAB          0000000000000000 000410 00001b 00     0   0  1
40ELF64-NEXT:    Key to Flags:
41ELF64-NEXT:      W (write), A (alloc), X (execute), M (merge), S (strings), l (large)
42ELF64-NEXT:      I (info), L (link order), G (group), T (TLS), E (exclude), x (unknown)
43ELF64-NEXT:      O (extra OS processing required) o (OS specific), p (processor specific)
44