| 1 | #include <elf.h>
|
|---|
| 2 |
|
|---|
| 3 | /*
|
|---|
| 4 | * ELF dump of 'uspace/srv/ns/ns'
|
|---|
| 5 | * 128152 (0x1F498) 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 = 100204 , /* (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 = 116 ,
|
|---|
| 46 | .p_vaddr = 0x1078 ,
|
|---|
| 47 | .p_paddr = 0x1078 ,
|
|---|
| 48 | .p_filesz = 99544 ,
|
|---|
| 49 | .p_memsz = 99544 ,
|
|---|
| 50 | .p_flags = 5 ,
|
|---|
| 51 | .p_align = 4
|
|---|
| 52 | },
|
|---|
| 53 | /* Program Header #1 0x54 */
|
|---|
| 54 | {
|
|---|
| 55 | .p_type = 1 , /* [PT_LOAD] */
|
|---|
| 56 | .p_offset = 99660 ,
|
|---|
| 57 | .p_vaddr = 0x1A550 ,
|
|---|
| 58 | .p_paddr = 0x1A550 ,
|
|---|
| 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 '' 0x1876C */
|
|---|
| 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' 0x18794 */
|
|---|
| 81 | {
|
|---|
| 82 | .sh_name = 27 ,
|
|---|
| 83 | .sh_type = 1 , /* [SHT_PROGBITS] */
|
|---|
| 84 | .sh_flags = 6 ,
|
|---|
| 85 | .sh_addr = 0x1078 ,
|
|---|
| 86 | .sh_offset = 116 , /* (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' 0x187BC */
|
|---|
| 94 | {
|
|---|
| 95 | .sh_name = 33 ,
|
|---|
| 96 | .sh_type = 1 , /* [SHT_PROGBITS] */
|
|---|
| 97 | .sh_flags = 6 ,
|
|---|
| 98 | .sh_addr = 0x109C ,
|
|---|
| 99 | .sh_offset = 152 , /* (bytes) */
|
|---|
| 100 | .sh_size = 99508 , /* (bytes) */
|
|---|
| 101 | .sh_link = 0 ,
|
|---|
| 102 | .sh_info = 0 ,
|
|---|
| 103 | .sh_addralign = 4 ,
|
|---|
| 104 | .sh_entsize = 0
|
|---|
| 105 | },
|
|---|
| 106 | /* Section Header #3 '.data' 0x187E4 */
|
|---|
| 107 | {
|
|---|
| 108 | .sh_name = 39 ,
|
|---|
| 109 | .sh_type = 1 , /* [SHT_PROGBITS] */
|
|---|
| 110 | .sh_flags = 3 ,
|
|---|
| 111 | .sh_addr = 0x1A550 ,
|
|---|
| 112 | .sh_offset = 99660 , /* (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' 0x1880C */
|
|---|
| 120 | {
|
|---|
| 121 | .sh_name = 45 ,
|
|---|
| 122 | .sh_type = 8 , /* [SHT_NOBITS] */
|
|---|
| 123 | .sh_flags = 1027 ,
|
|---|
| 124 | .sh_addr = 0x1A734 ,
|
|---|
| 125 | .sh_offset = 100144 , /* (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' 0x18834 */
|
|---|
| 133 | {
|
|---|
| 134 | .sh_name = 52 ,
|
|---|
| 135 | .sh_type = 8 , /* [SHT_NOBITS] */
|
|---|
| 136 | .sh_flags = 3 ,
|
|---|
| 137 | .sh_addr = 0x1A734 ,
|
|---|
| 138 | .sh_offset = 100144 , /* (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' 0x1885C */
|
|---|
| 146 | {
|
|---|
| 147 | .sh_name = 17 ,
|
|---|
| 148 | .sh_type = 3 , /* [SHT_STRTAB] */
|
|---|
| 149 | .sh_flags = 0 ,
|
|---|
| 150 | .sh_addr = 0x0 ,
|
|---|
| 151 | .sh_offset = 100144 , /* (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' 0x18884 */
|
|---|
| 159 | {
|
|---|
| 160 | .sh_name = 1 ,
|
|---|
| 161 | .sh_type = 2 , /* [SHT_SYMTAB] */
|
|---|
| 162 | .sh_flags = 0 ,
|
|---|
| 163 | .sh_addr = 0x0 ,
|
|---|
| 164 | .sh_offset = 100564 , /* (bytes) */
|
|---|
| 165 | .sh_size = 19120 , /* (bytes) */
|
|---|
| 166 | .sh_link = 8 ,
|
|---|
| 167 | .sh_info = 783 ,
|
|---|
| 168 | .sh_addralign = 4 ,
|
|---|
| 169 | .sh_entsize = 16
|
|---|
| 170 | },
|
|---|
| 171 | /* Section Header #8 '.strtab' 0x188AC */
|
|---|
| 172 | {
|
|---|
| 173 | .sh_name = 9 ,
|
|---|
| 174 | .sh_type = 3 , /* [SHT_STRTAB] */
|
|---|
| 175 | .sh_flags = 0 ,
|
|---|
| 176 | .sh_addr = 0x0 ,
|
|---|
| 177 | .sh_offset = 119684 , /* (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 ! */ };
|
|---|