all.test
3.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# RUN: yaml2obj %s -o %t.o
# RUN: llvm-readobj -a %t.o | FileCheck %s --check-prefix LLVM-ALL
# RUN: llvm-readobj --all %t.o | FileCheck %s --check-prefix LLVM-ALL
# LLVM-ALL: Format: ELF32-i386
# LLVM-ALL: Arch: i386
# LLVM-ALL: AddressSize: 32bit
# LLVM-ALL: LoadName:
# LLVM-ALL: ElfHeader {
# LLVM-ALL: Sections [
# LLVM-ALL: Relocations [
# LLVM-ALL: Symbols [
# LLVM-ALL: EHFrameHeader {
# LLVM-ALL: .eh_frame section at offset 0x1128 address 0x0:
# LLVM-ALL: ProgramHeaders [
# LLVM-ALL: VersionSymbols [
# LLVM-ALL: VersionDefinitions [
# LLVM-ALL: VersionRequirements [
# LLVM-ALL: Addrsig [
# LLVM-ALL: Notes [
# LLVM-ALL: StackSizes [
# RUN: llvm-readelf -a %t.o | FileCheck %s --check-prefix GNU-ALL
# RUN: llvm-readelf --all %t.o | FileCheck %s --check-prefix GNU-ALL
# GNU-ALL: ELF Header:
# GNU-ALL: There are {{.*}} section headers, starting at offset {{.*}}:
# GNU-ALL: Relocation section '.rela.data' at offset {{.*}} contains {{.*}} entries:
# GNU-ALL: Symbol table '.symtab' contains {{.*}} entries:
# GNU-ALL: EHFrameHeader {
# GNU-ALL: .eh_frame section at offset {{.*}} address 0x0:
# GNU-ALL: Dynamic section at offset {{.*}} contains {{.*}} entries:
# GNU-ALL: Program Headers:
# GNU-ALL: Version symbols section '.gnu.version' contains {{.*}} entries:
# GNU-ALL: Version definition section '.gnu.version_d' contains {{.*}} entries:
# GNU-ALL: Version needs section '.gnu.version_r' contains {{.*}} entries:
# GNU-ALL: There are no section groups in this file.
# GNU-ALL: Histogram for bucket list length (total of 1 buckets)
# GNU-ALL: Displaying notes found at file offset {{.*}} with length {{.*}}:
--- !ELF
FileHeader:
Class: ELFCLASS32
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_386
Sections:
- Name: .data
Type: SHT_PROGBITS
- Name: .rela.data
Type: SHT_REL
Relocations:
- Name: .gnu.version
Type: SHT_GNU_versym
Entries: [ 0 ]
Link: .dynsym
- Name: .gnu.version_d
Type: SHT_GNU_verdef
Info: 0x0
Entries: []
- Name: .gnu.version_r
Type: SHT_GNU_verneed
Info: 0x0
Dependencies:
- Version: 1
File: verneed1.so.0
Entries: []
- Name: .dynamic
Type: SHT_DYNAMIC
Address: 0x1000
AddressAlign: 0x1000
Entries:
- Tag: DT_HASH
Value: 0x1100
- Tag: DT_NULL
Value: 0
- Name: .hash
Type: SHT_HASH
Link: 0
Bucket: [ 1 ]
Chain: [ 0, 0 ]
Address: 0x1100
AddressAlign: 0x100
- Name: .eh_frame_hdr
Type: SHT_PROGBITS
## An arbitrary linker-generated valid content.
Content: 011b033b140000000100000000f0ffff30000000
- Name: .eh_frame
Type: SHT_PROGBITS
AddressAlign: 8
## An arbitrary linker-generated valid content.
Content: 1400000000000000017a5200017810011b0c070890010000100000001c000000c8efffff0100000000000000
- Name: .note.gnu.build-id
Type: SHT_NOTE
Flags: [ SHF_ALLOC ]
Address: 0x1500
## An arbitrary linker-generated valid content.
Content: 040000001000000003000000474E55004FCB712AA6387724A9F465A32CD8C14B
ProgramHeaders:
- Type: PT_LOAD
VAddr: 0x1000
Sections:
- Section: .dynamic
- Section: .hash
- Type: PT_DYNAMIC
Sections:
- Section: .dynamic
- Type: PT_GNU_EH_FRAME
Sections:
- Section: .eh_frame_hdr
- Type: PT_NOTE
Sections:
- Section: .note.gnu.build-id
Symbols: []
DynamicSymbols: []