summaryrefslogtreecommitdiff
path: root/bfd/elf32-mips.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-09-14 01:47:38 +0000
committerNick Clifton <nickc@redhat.com>2000-09-14 01:47:38 +0000
commit522c104836414c229b86aca128b0b4b7869aae19 (patch)
treeb6e891695a9e947baed885997a8911b9c02ccdff /bfd/elf32-mips.c
parentc38e5cfa6db948375a67419b83a9cd9b9db16ec7 (diff)
downloadbinutils-redhat-522c104836414c229b86aca128b0b4b7869aae19.tar.gz
Add support for the MIPS32
Diffstat (limited to 'bfd/elf32-mips.c')
-rw-r--r--bfd/elf32-mips.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c
index 5ab839e06c..fd8847a8e2 100644
--- a/bfd/elf32-mips.c
+++ b/bfd/elf32-mips.c
@@ -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);