diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2015-02-04 06:59:43 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-02-04 08:42:12 -0500 |
commit | 26f7c4bd05cf34e63a4a794150ab66a40a5a84a9 (patch) | |
tree | 1f76a9c286361323737b0bffcc24f81de5539134 | |
parent | 06a40ed1866ebedf336bcea90300785cc682d1c3 (diff) |
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>
-rw-r--r-- | arch/mips/boot/elf2ecoff.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 @@ | |||
49 | /* | 49 | /* |
50 | * Some extra ELF definitions | 50 | * Some extra ELF definitions |
51 | */ | 51 | */ |
52 | #define PT_MIPS_REGINFO 0x70000000 /* Register usage information */ | 52 | #define PT_MIPS_REGINFO 0x70000000 /* Register usage information */ |
53 | #define PT_MIPS_ABIFLAGS 0x70000003 /* Records ABI related flags */ | ||
53 | 54 | ||
54 | /* -------------------------------------------------------------------- */ | 55 | /* -------------------------------------------------------------------- */ |
55 | 56 | ||
@@ -354,6 +355,7 @@ int main(int argc, char *argv[]) | |||
354 | case PT_NOTE: | 355 | case PT_NOTE: |
355 | case PT_PHDR: | 356 | case PT_PHDR: |
356 | case PT_MIPS_REGINFO: | 357 | case PT_MIPS_REGINFO: |
358 | case PT_MIPS_ABIFLAGS: | ||
357 | continue; | 359 | continue; |
358 | 360 | ||
359 | case PT_LOAD: | 361 | case PT_LOAD: |