Enabled and added some more debug output.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5110 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a47544320d
commit
4f364c85af
@ -15,7 +15,7 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define TRACE_ELF 0
|
||||
#define TRACE_ELF 1
|
||||
#if TRACE_ELF
|
||||
# define TRACE(x) dprintf x
|
||||
#else
|
||||
@ -105,6 +105,9 @@ elf_load_image(int fd, preloaded_image *image)
|
||||
region->start = ROUNDOWN(programHeaders[i].p_vaddr, B_PAGE_SIZE);
|
||||
region->size = ROUNDUP(programHeaders[i].p_memsz + (programHeaders[i].p_vaddr % B_PAGE_SIZE), PAGE_SIZE);
|
||||
region->delta = -region->start;
|
||||
|
||||
TRACE(("segment %d: start = %p, size = %lu, delta = %ld\n", i,
|
||||
region->start, region->size, region->delta));
|
||||
}
|
||||
|
||||
// if image->text_region.start == NULL (image is relocatable),
|
||||
@ -137,6 +140,8 @@ elf_load_image(int fd, preloaded_image *image)
|
||||
else
|
||||
continue;
|
||||
|
||||
TRACE(("load segment %d...\n", i));
|
||||
|
||||
length = read_pos(fd, programHeaders[i].p_offset,
|
||||
(void *)(region->start + (programHeaders[i].p_vaddr % B_PAGE_SIZE)),
|
||||
programHeaders[i].p_filesz);
|
||||
|
Loading…
Reference in New Issue
Block a user