1 # RUN: yaml2obj %s > %t
2 # RUN: llvm-objdump --all-headers %t | FileCheck %s
4 ## Note: --all-headers (-x) is an alias for --archive-headers --file-headers
5 ## --section-headers --private-headers --reloc --syms (-afhprt). Test for them
6 ## in the following order which provides GNU objdump compatability.
8 # CHECK: file format ELF64-x86-64
10 # CHECK-NEXT: architecture: x86_64
11 # CHECK-NEXT: start address: 0x0000000000000000
13 # CHECK-NEXT: Program Header:
14 # CHECK: Dynamic Section:
16 # CHECK: SYMBOL TABLE:
17 # CHECK: RELOCATION RECORDS FOR [.text]:
19 ## Check how we dump the archives.
20 ## Check we dump the appropriate headers for each file in the archive.
24 # RUN: llvm-ar rcs %t.a %t %t2
25 # RUN: llvm-objdump --all-headers %t.a | FileCheck %s --check-prefix=ARCHIVE
27 # ARCHIVE: {{.*}}.a({{.*}}): file format ELF64-x86-64
29 # ARCHIVE: architecture: x86_64
30 # ARCHIVE: start address: 0x0000000000000000
31 # ARCHIVE: Program Header:
32 # ARCHIVE: Dynamic Section:
34 # ARCHIVE: SYMBOL TABLE:
35 # ARCHIVE: RELOCATION RECORDS FOR [.text]:
36 # ARCHIVE: {{.*}}.a({{.*}}2): file format ELF64-x86-64
38 # ARCHIVE: architecture: x86_64
39 # ARCHIVE: start address: 0x0000000000000000
40 # ARCHIVE: Program Header:
41 # ARCHIVE: Dynamic Section:
43 # ARCHIVE: SYMBOL TABLE:
44 # ARCHIVE: RELOCATION RECORDS FOR [.text]:
64 Flags: [ SHF_WRITE, SHF_ALLOC ]
65 EntSize: 0x0000000000000010
68 Value: 0x00000000000006A0
70 Value: 0x0000000000000000