1 | #include <elf.h>
|
---|
2 |
|
---|
3 | /*
|
---|
4 | * ELF dump of 'uspace/srv/ns/ns'
|
---|
5 | * 130068 (0x1FC14) bytes
|
---|
6 | */
|
---|
7 |
|
---|
8 | Elf32_Dyn dumpedelf_dyn_0[];
|
---|
9 | struct {
|
---|
10 | Elf32_Ehdr ehdr;
|
---|
11 | Elf32_Phdr phdrs[2];
|
---|
12 | Elf32_Shdr shdrs[9];
|
---|
13 | Elf32_Dyn *dyns;
|
---|
14 | } dumpedelf_0 = {
|
---|
15 |
|
---|
16 | .ehdr = {
|
---|
17 | .e_ident = { /* (EI_NIDENT bytes) */
|
---|
18 | /* [0] EI_MAG: */ 0x7F,'E','L','F',
|
---|
19 | /* [4] EI_CLASS: */ 1 , /* (ELFCLASS32) */
|
---|
20 | /* [5] EI_DATA: */ 1 , /* (ELFDATA2LSB) */
|
---|
21 | /* [6] EI_VERSION: */ 1 , /* (EV_CURRENT) */
|
---|
22 | /* [7] EI_OSABI: */ 0 , /* (ELFOSABI_NONE) */
|
---|
23 | /* [8] EI_ABIVERSION: */ 0 ,
|
---|
24 | /* [9] EI_PAD: */ 0x00 /* x 7 bytes */
|
---|
25 | },
|
---|
26 | .e_type = 2 , /* (ET_EXEC) */
|
---|
27 | .e_machine = 40 , /* (EM_ARM) */
|
---|
28 | .e_version = 1 ,
|
---|
29 | .e_entry = 0x1078 ,
|
---|
30 | .e_phoff = 52 , /* (bytes into file) */
|
---|
31 | .e_shoff = 102104 , /* (bytes into file) */
|
---|
32 | .e_flags = 0x5000002 ,
|
---|
33 | .e_ehsize = 52 , /* (bytes) */
|
---|
34 | .e_phentsize = 32 , /* (bytes) */
|
---|
35 | .e_phnum = 2 , /* (program headers) */
|
---|
36 | .e_shentsize = 40 , /* (bytes) */
|
---|
37 | .e_shnum = 9 , /* (section headers) */
|
---|
38 | .e_shstrndx = 6
|
---|
39 | },
|
---|
40 |
|
---|
41 | .phdrs = {
|
---|
42 | /* Program Header #0 0x34 */
|
---|
43 | {
|
---|
44 | .p_type = 1 , /* [PT_LOAD] */
|
---|
45 | .p_offset = 120 ,
|
---|
46 | .p_vaddr = 0x1078 ,
|
---|
47 | .p_paddr = 0x1078 ,
|
---|
48 | .p_filesz = 101440 ,
|
---|
49 | .p_memsz = 101440 ,
|
---|
50 | .p_flags = 5 ,
|
---|
51 | .p_align = 8
|
---|
52 | },
|
---|
53 | /* Program Header #1 0x54 */
|
---|
54 | {
|
---|
55 | .p_type = 1 , /* [PT_LOAD] */
|
---|
56 | .p_offset = 101560 ,
|
---|
57 | .p_vaddr = 0x1ACB8 ,
|
---|
58 | .p_paddr = 0x1ACB8 ,
|
---|
59 | .p_filesz = 484 ,
|
---|
60 | .p_memsz = 684 ,
|
---|
61 | .p_flags = 6 ,
|
---|
62 | .p_align = 4
|
---|
63 | },
|
---|
64 | },
|
---|
65 |
|
---|
66 | .shdrs = {
|
---|
67 | /* Section Header #0 '' 0x18ED8 */
|
---|
68 | {
|
---|
69 | .sh_name = 0 ,
|
---|
70 | .sh_type = 0 , /* [SHT_NULL] */
|
---|
71 | .sh_flags = 0 ,
|
---|
72 | .sh_addr = 0x0 ,
|
---|
73 | .sh_offset = 0 , /* (bytes) */
|
---|
74 | .sh_size = 0 , /* (bytes) */
|
---|
75 | .sh_link = 0 ,
|
---|
76 | .sh_info = 0 ,
|
---|
77 | .sh_addralign = 0 ,
|
---|
78 | .sh_entsize = 0
|
---|
79 | },
|
---|
80 | /* Section Header #1 '.init' 0x18F00 */
|
---|
81 | {
|
---|
82 | .sh_name = 27 ,
|
---|
83 | .sh_type = 1 , /* [SHT_PROGBITS] */
|
---|
84 | .sh_flags = 6 ,
|
---|
85 | .sh_addr = 0x1078 ,
|
---|
86 | .sh_offset = 120 , /* (bytes) */
|
---|
87 | .sh_size = 36 , /* (bytes) */
|
---|
88 | .sh_link = 0 ,
|
---|
89 | .sh_info = 0 ,
|
---|
90 | .sh_addralign = 4 ,
|
---|
91 | .sh_entsize = 0
|
---|
92 | },
|
---|
93 | /* Section Header #2 '.text' 0x18F28 */
|
---|
94 | {
|
---|
95 | .sh_name = 33 ,
|
---|
96 | .sh_type = 1 , /* [SHT_PROGBITS] */
|
---|
97 | .sh_flags = 6 ,
|
---|
98 | .sh_addr = 0x10A0 ,
|
---|
99 | .sh_offset = 160 , /* (bytes) */
|
---|
100 | .sh_size = 101400 , /* (bytes) */
|
---|
101 | .sh_link = 0 ,
|
---|
102 | .sh_info = 0 ,
|
---|
103 | .sh_addralign = 8 ,
|
---|
104 | .sh_entsize = 0
|
---|
105 | },
|
---|
106 | /* Section Header #3 '.data' 0x18F50 */
|
---|
107 | {
|
---|
108 | .sh_name = 39 ,
|
---|
109 | .sh_type = 1 , /* [SHT_PROGBITS] */
|
---|
110 | .sh_flags = 3 ,
|
---|
111 | .sh_addr = 0x1ACB8 ,
|
---|
112 | .sh_offset = 101560 , /* (bytes) */
|
---|
113 | .sh_size = 484 , /* (bytes) */
|
---|
114 | .sh_link = 0 ,
|
---|
115 | .sh_info = 0 ,
|
---|
116 | .sh_addralign = 4 ,
|
---|
117 | .sh_entsize = 0
|
---|
118 | },
|
---|
119 | /* Section Header #4 '.tdata' 0x18F78 */
|
---|
120 | {
|
---|
121 | .sh_name = 45 ,
|
---|
122 | .sh_type = 8 , /* [SHT_NOBITS] */
|
---|
123 | .sh_flags = 1027 ,
|
---|
124 | .sh_addr = 0x1AE9C ,
|
---|
125 | .sh_offset = 102044 , /* (bytes) */
|
---|
126 | .sh_size = 12 , /* (bytes) */
|
---|
127 | .sh_link = 0 ,
|
---|
128 | .sh_info = 0 ,
|
---|
129 | .sh_addralign = 4 ,
|
---|
130 | .sh_entsize = 0
|
---|
131 | },
|
---|
132 | /* Section Header #5 '.bss' 0x18FA0 */
|
---|
133 | {
|
---|
134 | .sh_name = 52 ,
|
---|
135 | .sh_type = 8 , /* [SHT_NOBITS] */
|
---|
136 | .sh_flags = 3 ,
|
---|
137 | .sh_addr = 0x1AE9C ,
|
---|
138 | .sh_offset = 102044 , /* (bytes) */
|
---|
139 | .sh_size = 200 , /* (bytes) */
|
---|
140 | .sh_link = 0 ,
|
---|
141 | .sh_info = 0 ,
|
---|
142 | .sh_addralign = 4 ,
|
---|
143 | .sh_entsize = 0
|
---|
144 | },
|
---|
145 | /* Section Header #6 '.shstrtab' 0x18FC8 */
|
---|
146 | {
|
---|
147 | .sh_name = 17 ,
|
---|
148 | .sh_type = 3 , /* [SHT_STRTAB] */
|
---|
149 | .sh_flags = 0 ,
|
---|
150 | .sh_addr = 0x0 ,
|
---|
151 | .sh_offset = 102044 , /* (bytes) */
|
---|
152 | .sh_size = 57 , /* (bytes) */
|
---|
153 | .sh_link = 0 ,
|
---|
154 | .sh_info = 0 ,
|
---|
155 | .sh_addralign = 1 ,
|
---|
156 | .sh_entsize = 0
|
---|
157 | },
|
---|
158 | /* Section Header #7 '.symtab' 0x18FF0 */
|
---|
159 | {
|
---|
160 | .sh_name = 1 ,
|
---|
161 | .sh_type = 2 , /* [SHT_SYMTAB] */
|
---|
162 | .sh_flags = 0 ,
|
---|
163 | .sh_addr = 0x0 ,
|
---|
164 | .sh_offset = 102464 , /* (bytes) */
|
---|
165 | .sh_size = 19136 , /* (bytes) */
|
---|
166 | .sh_link = 8 ,
|
---|
167 | .sh_info = 784 ,
|
---|
168 | .sh_addralign = 4 ,
|
---|
169 | .sh_entsize = 16
|
---|
170 | },
|
---|
171 | /* Section Header #8 '.strtab' 0x19018 */
|
---|
172 | {
|
---|
173 | .sh_name = 9 ,
|
---|
174 | .sh_type = 3 , /* [SHT_STRTAB] */
|
---|
175 | .sh_flags = 0 ,
|
---|
176 | .sh_addr = 0x0 ,
|
---|
177 | .sh_offset = 121600 , /* (bytes) */
|
---|
178 | .sh_size = 8468 , /* (bytes) */
|
---|
179 | .sh_link = 0 ,
|
---|
180 | .sh_info = 0 ,
|
---|
181 | .sh_addralign = 1 ,
|
---|
182 | .sh_entsize = 0
|
---|
183 | },
|
---|
184 | },
|
---|
185 |
|
---|
186 | .dyns = dumpedelf_dyn_0,
|
---|
187 | };
|
---|
188 | Elf32_Dyn dumpedelf_dyn_0[] = {
|
---|
189 | /* no dynamic tags ! */ };
|
---|