From: Hollis Blanchard Date: Fri, 9 Feb 2007 20:43:21 +0000 (-0600) Subject: [LIBELF] Print phdr addresses when loading. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15327^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ba6d0740944a8c2c6fcd88d3bf9ed9de2f52a756;p=xen.git [LIBELF] Print phdr addresses when loading. Signed-off-by: Hollis Blanchard --- 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); }