blob: 5cb78c7e3ecc7cf4c64e1391c2cf65522a4cfe7d [file] [log] [blame]
George Rimar9b6fe7e2019-01-12 12:17:24 +00001# RUN: yaml2obj %s > %t
2# RUN: llvm-objdump --all-headers %t | FileCheck %s
3
4## Check we print file format, architecture and start address before
5## anything else when using --all-headers.
6
7# CHECK: file format ELF64-x86-64
8# CHECK-EMPTY:
9# CHECK-NEXT: architecture: x86_64
10# CHECK-NEXT: start address: 0x0000000000000000
11# CHECK-EMPTY:
12# CHECK-NEXT: Sections:
13
George Rimar5e364332019-01-18 12:01:59 +000014## Check how we dump the archives.
15## Check we dump the appropriate headers for each file in the archive.
16
17# RUN: cp %t %t2
18# RUN: rm -f %t.a
19# RUN: llvm-ar rcs %t.a %t %t2
20# RUN: llvm-objdump --all-headers %t.a | FileCheck %s --check-prefix=ARCHIVE
21
22# ARCHIVE: {{.*}}.a({{.*}}): file format ELF64-x86-64
23# ARCHIVE: architecture: x86_64
24# ARCHIVE: start address: 0x0000000000000000
25# ARCHIVE: rw-r--r--
26# ARCHIVE: Sections:
27# ARCHIVE: SYMBOL TABLE:
28# ARCHIVE: Program Header:
29# ARCHIVE: Dynamic Section:
30# ARCHIVE: {{.*}}.a({{.*}}2): file format ELF64-x86-64
31# ARCHIVE: architecture: x86_64
32# ARCHIVE: start address: 0x0000000000000000
33# ARCHIVE: rw-r--r--
34# ARCHIVE: Sections:
35# ARCHIVE: SYMBOL TABLE:
36# ARCHIVE: Program Header:
37# ARCHIVE: Dynamic Section:
38
George Rimar9b6fe7e2019-01-12 12:17:24 +000039!ELF
40FileHeader:
41 Class: ELFCLASS64
42 Data: ELFDATA2LSB
43 Type: ET_EXEC
44 Machine: EM_X86_64
45Sections: