Rev 3690 | Rev 4338 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3690 | Rev 3772 | ||
|---|---|---|---|
| Line 304... | Line 304... | ||
| 304 | elf->info->dynamic = |
304 | elf->info->dynamic = |
| 305 | (void *)((uint8_t *)entry->p_vaddr + elf->bias); |
305 | (void *)((uint8_t *)entry->p_vaddr + elf->bias); |
| 306 | printf("dynamic section found at 0x%x\n", |
306 | printf("dynamic section found at 0x%x\n", |
| 307 | (uintptr_t)elf->info->dynamic); |
307 | (uintptr_t)elf->info->dynamic); |
| 308 | break; |
308 | break; |
| - | 309 | case 0x70000000: |
|
| - | 310 | /* FIXME: MIPS reginfo */ |
|
| - | 311 | break; |
|
| 309 | case PT_SHLIB: |
312 | case PT_SHLIB: |
| 310 | case PT_NOTE: |
313 | case PT_NOTE: |
| 311 | case PT_LOPROC: |
314 | // case PT_LOPROC: |
| 312 | case PT_HIPROC: |
315 | // case PT_HIPROC: |
| 313 | default: |
316 | default: |
| 314 | printf("segment p_type %d unknown\n", entry->p_type); |
317 | printf("segment p_type %d unknown\n", entry->p_type); |
| 315 | return EE_UNSUPPORTED; |
318 | return EE_UNSUPPORTED; |
| 316 | break; |
319 | break; |
| 317 | } |
320 | } |
| Line 372... | Line 375... | ||
| 372 | * and writeable. |
375 | * and writeable. |
| 373 | */ |
376 | */ |
| 374 | a = as_area_create((uint8_t *)base + bias, mem_sz, |
377 | a = as_area_create((uint8_t *)base + bias, mem_sz, |
| 375 | AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE); |
378 | AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE); |
| 376 | if (a == (void *)(-1)) { |
379 | if (a == (void *)(-1)) { |
| 377 | printf("memory mapping failed\n"); |
380 | printf("memory mapping failed (0x%x, %d)\n", |
| - | 381 | base+bias, mem_sz); |
|
| 378 | return EE_MEMORY; |
382 | return EE_MEMORY; |
| 379 | } |
383 | } |
| 380 | 384 | ||
| 381 | // printf("as_area_create(0x%lx, 0x%x, %d) -> 0x%lx\n", |
385 | // printf("as_area_create(0x%lx, 0x%x, %d) -> 0x%lx\n", |
| 382 | // entry->p_vaddr+bias, entry->p_memsz, flags, (uintptr_t)a); |
386 | // entry->p_vaddr+bias, entry->p_memsz, flags, (uintptr_t)a); |