Skip to contentSkip to conversation

Make libelf not fail on unknown elf notes.

PATCH New Gerd Hoffmann 1 participant 1 message Feb 14, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Make libelf not fail on unknown elf notes.

Hi,

Yet another trivial fix, please apply,

Gerd

Signature · 1 line
Gerd Hoffmann <[email protected]>

Make libelf not fail on unknown elf notes.

xen/common/libelf/libelf-dominfo.c +2 -2
diff -r ad9bbd103034 xen/common/libelf/libelf-dominfo.c
@@ -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
[email protected]
http://lists.xensource.com/xen-devel