[LIBELF] Print phdr addresses when loading.
authorHollis Blanchard <hollisb@us.ibm.com>
Fri, 9 Feb 2007 20:43:21 +0000 (14:43 -0600)
committerHollis 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

index 381c90b5cca421c4f5ed95132f9eef8543311949..9c4491ebe48c0052fb810687bd5ca724217c706b 100644 (file)
@@ -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);
     }