1 # RUN: yaml2obj %s > %t
2 # RUN: llvm-objdump --all-headers %t | FileCheck %s
4 ## Check we print file format, architecture and start address followed by the
5 ## other data when using --all-headers.
7 # CHECK: file format ELF64-x86-64
9 # CHECK-NEXT: architecture: x86_64
10 # CHECK-NEXT: start address: 0x0000000000000000
12 # CHECK-NEXT: Sections:
13 # CHECK: SYMBOL TABLE:
14 # CHECK: Program Header:
15 # CHECK: Dynamic Section:
17 ## Check how we dump the archives.
18 ## Check we dump the appropriate headers for each file in the archive.
22 # RUN: llvm-ar rcs %t.a %t %t2
23 # RUN: llvm-objdump --all-headers %t.a | FileCheck %s --check-prefix=ARCHIVE
25 # ARCHIVE: {{.*}}.a({{.*}}): file format ELF64-x86-64
26 # ARCHIVE: architecture: x86_64
27 # ARCHIVE: start address: 0x0000000000000000
30 # ARCHIVE: SYMBOL TABLE:
31 # ARCHIVE: Program Header:
32 # ARCHIVE: Dynamic Section:
33 # ARCHIVE: {{.*}}.a({{.*}}2): file format ELF64-x86-64
34 # ARCHIVE: architecture: x86_64
35 # ARCHIVE: start address: 0x0000000000000000
38 # ARCHIVE: SYMBOL TABLE:
39 # ARCHIVE: Program Header:
40 # ARCHIVE: Dynamic Section: