From: Ralf Baechle Date: Wed, 4 Feb 2015 11:59:43 +0000 (+0100) Subject: MIPS: elf2ecoff: Ignore PT_MIPS_ABIFLAGS program headers. X-Git-Tag: MMI-PSA29.97-13-9~10727^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=26f7c4bd05cf34e63a4a794150ab66a40a5a84a9;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git MIPS: elf2ecoff: Ignore PT_MIPS_ABIFLAGS program headers. These are generated by very recent toolchains and result in an error message when attenpting to convert a kernel from ELF to ECOFF. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/boot/elf2ecoff.c b/arch/mips/boot/elf2ecoff.c index 0b0f3cab068b..2a4c52e27f41 100644 --- a/arch/mips/boot/elf2ecoff.c +++ b/arch/mips/boot/elf2ecoff.c @@ -49,7 +49,8 @@ /* * Some extra ELF definitions */ -#define PT_MIPS_REGINFO 0x70000000 /* Register usage information */ +#define PT_MIPS_REGINFO 0x70000000 /* Register usage information */ +#define PT_MIPS_ABIFLAGS 0x70000003 /* Records ABI related flags */ /* -------------------------------------------------------------------- */ @@ -354,6 +355,7 @@ int main(int argc, char *argv[]) case PT_NOTE: case PT_PHDR: case PT_MIPS_REGINFO: + case PT_MIPS_ABIFLAGS: continue; case PT_LOAD: