Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 3689 → Rev 3690

/branches/dynload/uspace/srv/loader/elf_load.c
300,6 → 300,12
elf->info->interp = "/app/dload";
break;
case PT_DYNAMIC:
/* Record pointer to dynamic section into info structure */
elf->info->dynamic =
(void *)((uint8_t *)entry->p_vaddr + elf->bias);
printf("dynamic section found at 0x%x\n",
(uintptr_t)elf->info->dynamic);
break;
case PT_SHLIB:
case PT_NOTE:
case PT_LOPROC:
457,11 → 463,6
}
break;
case SHT_DYNAMIC:
/* Record pointer to dynamic section into info structure */
elf->info->dynamic =
(void *)((uint8_t *)entry->sh_addr + elf->bias);
printf("dynamic section found at 0x%x\n",
(uintptr_t)elf->info->dynamic);
break;
default:
break;