All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hollis Blanchard <hollisb@us.ibm.com>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: Gerd Hoffmann <kraxel@suse.de>, xen-devel@lists.xensource.com
Subject: [PATCH] [LIBELF] Print phdr addresses when loading
Date: Fri, 09 Feb 2007 14:24:57 -0500	[thread overview]
Message-ID: <bbbbab538b8802fde101.1171052697@localhost> (raw)

# HG changeset patch
# User Hollis Blanchard <hollisb@us.ibm.com>
# Date 1171052336 21600
# Node ID bbbbab538b8802fde10139f0c2ae7307c1ecf812
# Parent  f63c8b64840956b95a911387e1de6f76bd3dc3d5
[LIBELF] Print phdr addresses when loading.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>

diff -r f63c8b648409 -r bbbbab538b88 xen/common/libelf/libelf-loader.c
--- a/xen/common/libelf/libelf-loader.c	Wed Feb 07 18:53:37 2007 -0600
+++ b/xen/common/libelf/libelf-loader.c	Fri Feb 09 14:18:56 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);
     }

             reply	other threads:[~2007-02-09 19:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-09 19:24 Hollis Blanchard [this message]
2007-02-12 10:05 ` [PATCH] [LIBELF] Print phdr addresses when loading Gerd Hoffmann
2007-02-12 15:46   ` Hollis Blanchard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bbbbab538b8802fde101.1171052697@localhost \
    --to=hollisb@us.ibm.com \
    --cc=Keir.Fraser@cl.cam.ac.uk \
    --cc=kraxel@suse.de \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.