All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@suse.de>
To: Xen devel list <xen-devel@lists.xensource.com>
Cc: Jan Beulich <jbeulich@novell.com>
Subject: [patch] Make libelf not fail on unknown elf notes.
Date: Wed, 14 Feb 2007 13:31:28 +0100	[thread overview]
Message-ID: <45D30120.6020904@suse.de> (raw)

[-- 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

                 reply	other threads:[~2007-02-14 12:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45D30120.6020904@suse.de \
    --to=kraxel@suse.de \
    --cc=jbeulich@novell.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.