[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen master] xsplice: check against ELFOSABI_NONE instead of ELFOSABI_SYSV



commit 359cf73565bddafc8cba81fe91231be27d16b106
Author:     Roger Pau Monné <roger.pau@xxxxxxxxxx>
AuthorDate: Wed May 4 09:46:57 2016 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Wed May 4 09:46:57 2016 +0200

    xsplice: check against ELFOSABI_NONE instead of ELFOSABI_SYSV
    
    They are equivalent, but using ELFOSABI_NONE is more correct in this
    context.
    
    Suggested-by: Jan Beulich <jbeulich@xxxxxxxx>
    Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
    Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
 xen/common/xsplice_elf.c     | 2 +-
 xen/include/xen/elfstructs.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/xen/common/xsplice_elf.c b/xen/common/xsplice_elf.c
index e403a0e..1e1f167 100644
--- a/xen/common/xsplice_elf.c
+++ b/xen/common/xsplice_elf.c
@@ -397,7 +397,7 @@ static int xsplice_header_check(const struct xsplice_elf 
*elf)
     if ( hdr->e_version != EV_CURRENT ||
          hdr->e_ident[EI_VERSION] != EV_CURRENT ||
          hdr->e_ident[EI_ABIVERSION] != 0 ||
-         hdr->e_ident[EI_OSABI] != ELFOSABI_SYSV ||
+         hdr->e_ident[EI_OSABI] != ELFOSABI_NONE ||
          hdr->e_type != ET_REL ||
          hdr->e_phnum != 0 )
     {
diff --git a/xen/include/xen/elfstructs.h b/xen/include/xen/elfstructs.h
index 615eb06..68954b0 100644
--- a/xen/include/xen/elfstructs.h
+++ b/xen/include/xen/elfstructs.h
@@ -81,6 +81,7 @@ typedef uint64_t      Elf64_Xword;
 
 /* e_ident[] Operating System/ABI */
 #define ELFOSABI_SYSV          0       /* UNIX System V ABI */
+#define ELFOSABI_NONE          0       /* Same as ELFOSABI_SYSV */
 #define ELFOSABI_HPUX          1       /* HP-UX operating system */
 #define ELFOSABI_NETBSD                2       /* NetBSD */
 #define ELFOSABI_LINUX         3       /* GNU/Linux */
--
generated by git-patchbot for /home/xen/git/xen.git#master

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.