From b495e631ecee5c8b4d87f9e4b3abf37b45b9af74 Mon Sep 17 00:00:00 2001
From: Ralf Baechle <ralf@linux-mips.org>
Date: Wed, 4 Feb 2015 12:59:43 +0100
Subject: [PATCH] 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 <ralf@linux-mips.org>
---
 arch/mips/boot/elf2ecoff.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/mips/boot/elf2ecoff.c b/arch/mips/boot/elf2ecoff.c
index 0b0f3cab068ba..2a4c52e27f416 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:
-- 
2.39.5