MIPS: elf2ecoff: Ignore PT_MIPS_ABIFLAGS program headers.
authorRalf Baechle <ralf@linux-mips.org>
Wed, 4 Feb 2015 11:59:43 +0000 (12:59 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 4 Feb 2015 13:42:12 +0000 (14:42 +0100)
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

index 0b0f3cab068bae2eafd63baf37bf6e9984f676c2..2a4c52e27f416e146e5c268edad9fd867e79c5fe 100644 (file)
@@ -49,7 +49,8 @@
 /*
  * Some extra ELF definitions
  */
 /*
  * 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_NOTE:
                case PT_PHDR:
                case PT_MIPS_REGINFO:
+               case PT_MIPS_ABIFLAGS:
                        continue;
 
                case PT_LOAD:
                        continue;
 
                case PT_LOAD: