# HG changeset patch
# User Hollis Blanchard <hollisb@xxxxxxxxxx>
# Date 1171053801 21600
# Node ID 1b74475ad5119247fdf5fa743d6d82ee3a19bf3a
# Parent 376940a942e9d9a6b335db325cc9dc41bb480c78
[LIBELF] Print phdr addresses when loading.
Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx>
---
xen/common/libelf/libelf-loader.c | 2 ++
1 files changed, 2 insertions(+)
diff -r 376940a942e9 -r 1b74475ad511 xen/common/libelf/libelf-loader.c
--- a/xen/common/libelf/libelf-loader.c Fri Feb 09 14:43:21 2007 -0600
+++ b/xen/common/libelf/libelf-loader.c Fri Feb 09 14:43:21 2007 -0600
@@ -128,6 +128,8 @@ void elf_load_binary(struct elf_binary *
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);
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|