WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: Xen devel list <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [patch] Make libelf not fail on unknown elf notes.
From: Gerd Hoffmann <kraxel@xxxxxxx>
Date: Wed, 14 Feb 2007 13:31:28 +0100
Cc: Jan Beulich <jbeulich@xxxxxxxxxx>
Delivery-date: Wed, 14 Feb 2007 04:30:38 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.9 (X11/20060911)
  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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [patch] Make libelf not fail on unknown elf notes., Gerd Hoffmann <=