1 # RUN: yaml2obj %s -o %t.o
2 # RUN: llvm-readobj -a %t.o | FileCheck %s --check-prefix LLVM-ALL
3 # RUN: llvm-readobj --all %t.o | FileCheck %s --check-prefix LLVM-ALL
5 # LLVM-ALL: Format: ELF32-i386
7 # LLVM-ALL: AddressSize: 32bit
9 # LLVM-ALL: ElfHeader {
10 # LLVM-ALL: Sections [
11 # LLVM-ALL: Relocations [
13 # LLVM-ALL: EHFrameHeader {
14 # LLVM-ALL: .eh_frame section at offset 0x1128 address 0x0:
15 # LLVM-ALL: ProgramHeaders [
16 # LLVM-ALL: VersionSymbols [
17 # LLVM-ALL: VersionDefinitions [
18 # LLVM-ALL: VersionRequirements [
21 # LLVM-ALL: StackSizes [
23 # RUN: llvm-readelf -a %t.o | FileCheck %s --check-prefix GNU-ALL
24 # RUN: llvm-readelf --all %t.o | FileCheck %s --check-prefix GNU-ALL
26 # GNU-ALL: ELF Header:
27 # GNU-ALL: There are {{.*}} section headers, starting at offset {{.*}}:
28 # GNU-ALL: Relocation section '.rela.data' at offset {{.*}} contains {{.*}} entries:
29 # GNU-ALL: Symbol table '.symtab' contains {{.*}} entries:
30 # GNU-ALL: EHFrameHeader {
31 # GNU-ALL: .eh_frame section at offset {{.*}} address 0x0:
32 # GNU-ALL: Dynamic section at offset {{.*}} contains {{.*}} entries:
33 # GNU-ALL: Program Headers:
34 # GNU-ALL: Version symbols section '.gnu.version' contains {{.*}} entries:
35 # GNU-ALL: Version definition section '.gnu.version_d' contains {{.*}} entries:
36 # GNU-ALL: Version needs section '.gnu.version_r' contains {{.*}} entries:
37 # GNU-ALL: There are no section groups in this file.
38 # GNU-ALL: Histogram for bucket list length (total of 1 buckets)
39 # GNU-ALL: Displaying notes found at file offset {{.*}} with length {{.*}}:
56 - Name: .gnu.version_d
60 - Name: .gnu.version_r
85 ## An arbitrary linker-generated valid content.
86 Content: 011b033b140000000100000000f0ffff30000000
90 ## An arbitrary linker-generated valid content.
91 Content: 1400000000000000017a5200017810011b0c070890010000100000001c000000c8efffff0100000000000000
92 - Name: .note.gnu.build-id
96 ## An arbitrary linker-generated valid content.
97 Content: 040000001000000003000000474E55004FCB712AA6387724A9F465A32CD8C14B
107 - Type: PT_GNU_EH_FRAME
109 - Section: .eh_frame_hdr
112 - Section: .note.gnu.build-id