From a6d717cb04dbd99f1dd4339972a63e9ad5cb6229 Mon Sep 17 00:00:00 2001 From: John Reiser Date: Sat, 7 Jul 2012 07:45:51 -0700 Subject: [PATCH] big endian, too: ARM Linux EABI version 4 and 5 is a mess --- src/p_lx_elf.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/p_lx_elf.cpp b/src/p_lx_elf.cpp index 33d2fb6c..2f4c129f 100644 --- a/src/p_lx_elf.cpp +++ b/src/p_lx_elf.cpp @@ -1271,10 +1271,9 @@ bool PackLinuxElf32::canPack() if (Elf32_Ehdr::ELFOSABI_NONE==osabi0) { // No EI_OSBAI, no PT_NOTE. unsigned const arm_eabi = 0xff000000u & get_te32(&ehdr->e_flags); if (Elf32_Ehdr::EM_ARM==e_machine - && Elf32_Ehdr::ELFDATA2LSB==ei_data && (EF_ARM_EABI_VER5==arm_eabi || EF_ARM_EABI_VER4==arm_eabi ) ) { - // armel-eabi ARM little-endian Linux EABI version 4 is a mess. + // armel-eabi armeb-eabi ARM Linux EABI version 4 is a mess. ei_osabi = osabi0 = Elf32_Ehdr::ELFOSABI_LINUX; } else {