diff options
author | Hollis Blanchard <hollisb@us.ibm.com> | 2007-02-09 14:43:21 -0600 |
---|---|---|
committer | Hollis Blanchard <hollisb@us.ibm.com> | 2007-02-09 14:43:21 -0600 |
commit | ba6d0740944a8c2c6fcd88d3bf9ed9de2f52a756 (patch) | |
tree | 5d8c7c914521c14f477a6200f178a404f6be43f8 /xen/common/libelf | |
parent | deabd0dc0c9d16ff1e8b8fce1f2574c89c312578 (diff) | |
download | xen-ba6d0740944a8c2c6fcd88d3bf9ed9de2f52a756.tar.gz xen-ba6d0740944a8c2c6fcd88d3bf9ed9de2f52a756.tar.bz2 xen-ba6d0740944a8c2c6fcd88d3bf9ed9de2f52a756.zip |
[LIBELF] Print phdr addresses when loading.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Diffstat (limited to 'xen/common/libelf')
-rw-r--r-- | xen/common/libelf/libelf-loader.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/common/libelf/libelf-loader.c b/xen/common/libelf/libelf-loader.c index 381c90b5cc..9c4491ebe4 100644 --- a/xen/common/libelf/libelf-loader.c +++ b/xen/common/libelf/libelf-loader.c @@ -128,6 +128,8 @@ void elf_load_binary(struct elf_binary *elf) filesz = elf_uval(elf, phdr, p_filesz); memsz = elf_uval(elf, phdr, p_memsz); dest = elf_get_ptr(elf, paddr); + elf_msg(elf, "%s: phdr %" PRIu64 " at 0x%p -> 0x%p\n", + __func__, i, dest, dest + filesz); memcpy(dest, elf->image + offset, filesz); memset(dest + filesz, 0, memsz - filesz); } |