[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [patch] Make libelf not fail on unknown elf notes.



  Hi,

Yet another trivial fix, please apply,

  Gerd

-- 
Gerd Hoffmann <kraxel@xxxxxxx>
Make libelf not fail on unknown elf notes.

Signed-off-by: Gerd Hoffmann <kraxel@xxxxxxx>
diff -r ad9bbd103034 xen/common/libelf/libelf-dominfo.c
--- a/xen/common/libelf/libelf-dominfo.c        Fri Feb 09 18:19:24 2007 +0000
+++ b/xen/common/libelf/libelf-dominfo.c        Mon Feb 12 15:05:11 2007 +0100
@@ -107,9 +107,9 @@ int elf_xen_parse_note(struct elf_binary
     if ((type >= sizeof(note_desc) / sizeof(note_desc[0])) ||
        (NULL == note_desc[type].name))
     {
-       elf_err(elf, "%s: unknown xen elf note (0x%x)\n",
+       elf_msg(elf, "%s: unknown xen elf note (0x%x)\n",
                __FUNCTION__, type);
-       return -1;
+       return 0;
     }
 
     if (note_desc[type].str)
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.