1 # RUN: yaml2obj %s > %t.o
2 # RUN: llvm-objdump --file-headers --private-headers --section-headers --syms \
3 # RUN: --full-contents --dwarf=frames \
4 # RUN: --reloc %t.o | FileCheck %s --check-prefixes=CHECK,RELOC
5 # RUN: llvm-objdump --file-headers --private-headers --section-headers --syms \
6 # RUN: --full-contents --dwarf=frames \
7 # RUN: --disassemble %t.o | FileCheck %s --check-prefixes=CHECK,DISASM
9 ## Test the ordering of most of the output. Note that --disassemble suppresses
10 ## --reloc, so we test them independently.
13 # CHECK: file format ELF64-x86-64
14 # CHECK: architecture: x86_64
15 # CHECK: start address: 0x0000000000000000
16 ## Private headers (-p)
17 # CHECK: Program Header:
18 # CHECK: Dynamic Section:
19 ## Section headers (-h)
22 # CHECK: SYMBOL TABLE:
24 # CHECK: .eh_frame contents:
26 # RELOC: RELOCATION RECORDS FOR [.text]:
27 ## Section contents (-s)
28 # CHECK: Contents of section .rel.text:
29 # CHECK: Contents of section .dynamic:
30 # CHECK: Contents of section .symtab:
31 # CHECK: Contents of section .strtab:
32 # CHECK: Contents of section .shstrtab:
34 # DISASM: Disassembly of section .text:
45 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
46 Content: e800000000e800000000
56 Flags: [ SHF_WRITE, SHF_ALLOC ]
57 EntSize: 0x0000000000000010
60 Value: 0x00000000000006A0
62 Value: 0x0000000000000000
64 Type: SHT_X86_64_UNWIND
66 AddressAlign: 0x0000000000000001