Skip to content

Commit

Permalink
MIPS: elf2ecoff: Ignore PT_MIPS_ABIFLAGS program headers.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ralf Baechle committed Feb 4, 2015
1 parent 06a40ed commit 26f7c4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/mips/boot/elf2ecoff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

/* -------------------------------------------------------------------- */

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 26f7c4b

Please sign in to comment.