From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerd Hoffmann Subject: [patch] Make libelf not fail on unknown elf notes. Date: Wed, 14 Feb 2007 13:31:28 +0100 Message-ID: <45D30120.6020904@suse.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050606090802060001080000" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen devel list Cc: Jan Beulich List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------050606090802060001080000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, Yet another trivial fix, please apply, Gerd -- Gerd Hoffmann --------------050606090802060001080000 Content-Type: text/x-patch; name="libelf.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="libelf.diff" Make libelf not fail on unknown elf notes. Signed-off-by: Gerd Hoffmann 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) --------------050606090802060001080000 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------050606090802060001080000--