elf_load_image() now also saves the size of the dynamic section.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7279 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
840ed4b067
commit
6ef64f7451
@ -79,7 +79,8 @@ elf_load_image(int fd, preloaded_image *image)
|
|||||||
case PT_LOAD:
|
case PT_LOAD:
|
||||||
break;
|
break;
|
||||||
case PT_DYNAMIC:
|
case PT_DYNAMIC:
|
||||||
image->dynamic_section = programHeaders[i].p_vaddr;
|
image->dynamic_section.start = programHeaders[i].p_vaddr;
|
||||||
|
image->dynamic_section.size = programHeaders[i].p_memsz;
|
||||||
continue;
|
continue;
|
||||||
default:
|
default:
|
||||||
dprintf("unhandled pheader type 0x%lx\n", programHeaders[i].p_type);
|
dprintf("unhandled pheader type 0x%lx\n", programHeaders[i].p_type);
|
||||||
@ -153,7 +154,7 @@ elf_load_image(int fd, preloaded_image *image)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// modify the dynamic section by the delta of the regions
|
// modify the dynamic section by the delta of the regions
|
||||||
image->dynamic_section += image->text_region.delta;
|
image->dynamic_section.start += image->text_region.delta;
|
||||||
|
|
||||||
free(programHeaders);
|
free(programHeaders);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user