forked from Imagelibrary/binutils-gdb
Add support for the MIPS32
This commit is contained in:
@@ -1848,6 +1848,9 @@ elf_mips_mach (flags)
|
||||
case E_MIPS_MACH_4650:
|
||||
return bfd_mach_mips4650;
|
||||
|
||||
case E_MIPS_MACH_MIPS32:
|
||||
return bfd_mach_mips4K;
|
||||
|
||||
default:
|
||||
switch (flags & EF_MIPS_ARCH)
|
||||
{
|
||||
@@ -2347,6 +2350,10 @@ _bfd_mips_elf_final_write_processing (abfd, linker)
|
||||
case bfd_mach_mips8000:
|
||||
val = E_MIPS_ARCH_4;
|
||||
break;
|
||||
|
||||
case bfd_mach_mips4K:
|
||||
val = E_MIPS_ARCH_2 | E_MIPS_MACH_MIPS32;
|
||||
break;
|
||||
}
|
||||
|
||||
elf_elfheader (abfd)->e_flags &= ~ (EF_MIPS_ARCH | EF_MIPS_MACH);
|
||||
|
||||
Reference in New Issue
Block a user