aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/libelf
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-02-26 09:59:33 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-02-26 09:59:33 +0000
commit41881805d14ab2f2852c0f9410eb3c210681e905 (patch)
tree8633ae75389eaee6f1ea5643288a5b59fa84111b /xen/common/libelf
parent2695cd025a680d3bb86d10ae2732d8701b6b0eb4 (diff)
downloadxen-41881805d14ab2f2852c0f9410eb3c210681e905.tar.gz
xen-41881805d14ab2f2852c0f9410eb3c210681e905.tar.bz2
xen-41881805d14ab2f2852c0f9410eb3c210681e905.zip
Write Xen ELF notes into xenstore on domain build.
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
Diffstat (limited to 'xen/common/libelf')
-rw-r--r--xen/common/libelf/libelf-dominfo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xen/common/libelf/libelf-dominfo.c b/xen/common/libelf/libelf-dominfo.c
index 9425d85cc1..85a82f3bf5 100644
--- a/xen/common/libelf/libelf-dominfo.c
+++ b/xen/common/libelf/libelf-dominfo.c
@@ -119,13 +119,18 @@ int elf_xen_parse_note(struct elf_binary *elf,
str = elf_note_desc(elf, note);
elf_msg(elf, "%s: %s = \"%s\"\n", __FUNCTION__,
note_desc[type].name, str);
+ parms->elf_notes[type].type = XEN_ENT_STR;
+ parms->elf_notes[type].data.str = str;
}
else
{
val = elf_note_numeric(elf, note);
elf_msg(elf, "%s: %s = 0x%" PRIx64 "\n", __FUNCTION__,
note_desc[type].name, val);
+ parms->elf_notes[type].type = XEN_ENT_LONG;
+ parms->elf_notes[type].data.num = val;
}
+ parms->elf_notes[type].name = note_desc[type].name;
switch ( type )
{