projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
deabd0d
)
[LIBELF] Print phdr addresses when loading.
author
Hollis Blanchard
<hollisb@us.ibm.com>
Fri, 9 Feb 2007 20:43:21 +0000
(14:43 -0600)
committer
Hollis Blanchard
<hollisb@us.ibm.com>
Fri, 9 Feb 2007 20:43:21 +0000
(14:43 -0600)
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
xen/common/libelf/libelf-loader.c
patch
|
blob
|
history
diff --git
a/xen/common/libelf/libelf-loader.c
b/xen/common/libelf/libelf-loader.c
index 381c90b5cca421c4f5ed95132f9eef8543311949..9c4491ebe48c0052fb810687bd5ca724217c706b 100644
(file)
--- 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);
}