All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] Make libelf not fail on unknown elf notes.
@ 2007-02-14 12:31 Gerd Hoffmann
  0 siblings, 0 replies; only message in thread
From: Gerd Hoffmann @ 2007-02-14 12:31 UTC (permalink / raw)
  To: Xen devel list; +Cc: Jan Beulich

[-- Attachment #1: Type: text/plain, Size: 90 bytes --]

  Hi,

Yet another trivial fix, please apply,

  Gerd

-- 
Gerd Hoffmann <kraxel@suse.de>

[-- Attachment #2: libelf.diff --]
[-- Type: text/x-patch, Size: 647 bytes --]

Make libelf not fail on unknown elf notes.

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
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)

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-14 12:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-14 12:31 [patch] Make libelf not fail on unknown elf notes Gerd Hoffmann

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.