diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-02-26 09:59:33 +0000 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-02-26 09:59:33 +0000 |
commit | 41881805d14ab2f2852c0f9410eb3c210681e905 (patch) | |
tree | 8633ae75389eaee6f1ea5643288a5b59fa84111b /xen/common/libelf | |
parent | 2695cd025a680d3bb86d10ae2732d8701b6b0eb4 (diff) | |
download | xen-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.c | 5 |
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 ) { |