Rev 2996 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2996 | Rev 3004 | ||
---|---|---|---|
Line 179... | Line 179... | ||
179 | elf->bias = so_bias; |
179 | elf->bias = so_bias; |
180 | else |
180 | else |
181 | elf->bias = 0; |
181 | elf->bias = 0; |
182 | 182 | ||
183 | printf("Bias set to 0x%x\n", elf->bias); |
183 | printf("Bias set to 0x%x\n", elf->bias); |
- | 184 | elf->info->interp = NULL; |
|
- | 185 | elf->info->dynamic = NULL; |
|
184 | 186 | ||
185 | printf("parse segments\n"); |
187 | printf("parse segments\n"); |
186 | 188 | ||
187 | /* Walk through all segment headers and process them. */ |
189 | /* Walk through all segment headers and process them. */ |
188 | for (i = 0; i < header->e_phnum; i++) { |
190 | for (i = 0; i < header->e_phnum; i++) { |
Line 199... | Line 201... | ||
199 | if (rc != EE_OK) |
201 | if (rc != EE_OK) |
200 | return rc; |
202 | return rc; |
201 | } |
203 | } |
202 | 204 | ||
203 | printf("parse sections\n"); |
205 | printf("parse sections\n"); |
204 | elf->info->dynamic = NULL; |
- | |
205 | 206 | ||
206 | /* Inspect all section headers and proccess them. */ |
207 | /* Inspect all section headers and proccess them. */ |
207 | for (i = 0; i < header->e_shnum; i++) { |
208 | for (i = 0; i < header->e_shnum; i++) { |
208 | elf_section_header_t section_hdr; |
209 | elf_section_header_t section_hdr; |
209 | 210 | ||
Line 254... | Line 255... | ||
254 | case PT_PHDR: |
255 | case PT_PHDR: |
255 | break; |
256 | break; |
256 | case PT_LOAD: |
257 | case PT_LOAD: |
257 | return load_segment(elf, entry); |
258 | return load_segment(elf, entry); |
258 | break; |
259 | break; |
259 | case PT_DYNAMIC: |
- | |
260 | case PT_INTERP: |
260 | case PT_INTERP: |
- | 261 | /* Assume silently interp == "/rtld.so" */ |
|
- | 262 | elf->info->interp = "/rtld.so"; |
|
- | 263 | break; |
|
- | 264 | case PT_DYNAMIC: |
|
261 | case PT_SHLIB: |
265 | case PT_SHLIB: |
262 | case PT_NOTE: |
266 | case PT_NOTE: |
263 | case PT_LOPROC: |
267 | case PT_LOPROC: |
264 | case PT_HIPROC: |
268 | case PT_HIPROC: |
265 | default: |
269 | default: |