They are equivalent, but using ELFOSABI_NONE is more correct in this
context.
Suggested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
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 )
{
/* 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 */