diff options
author | Nick Clifton <nickc@redhat.com> | 2000-09-14 01:47:38 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2000-09-14 01:47:38 +0000 |
commit | 156c2f8bf75a86dfa719220f9f259196d9d2491b (patch) | |
tree | 410e768f761f1c8884cc7529e6d449bde2d4dc26 /bfd | |
parent | 9b14b192bba894ebaa57346c116d8feda54829de (diff) | |
download | gdb-156c2f8bf75a86dfa719220f9f259196d9d2491b.zip gdb-156c2f8bf75a86dfa719220f9f259196d9d2491b.tar.gz gdb-156c2f8bf75a86dfa719220f9f259196d9d2491b.tar.bz2 |
Add support for the MIPS32
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 8 | ||||
-rw-r--r-- | bfd/archures.c | 1 | ||||
-rw-r--r-- | bfd/bfd-in2.h | 1 | ||||
-rw-r--r-- | bfd/cpu-mips.c | 4 | ||||
-rw-r--r-- | bfd/elf32-mips.c | 7 |
5 files changed, 19 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0a987a7..69d43f8 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,11 @@ +2000-09-13 Anders Norlander <anorland@acc.umu.se> + + * cpu-mips.c (arch_info_struct): Add mips:4K + * bfd-in2.h (bfd_mach_mips4K): New define. + * archures.c: Add bfd_mach_mips4K to comment. + * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return + E_MIPS_ARCH_2 for bfd_mach_mips4K. + Wed Sep 13 19:31:39 2000 Marco Franzen <marcof@thyron.com> * som.c (som_write_symbol_strings): Do not used fixed buffers, diff --git a/bfd/archures.c b/bfd/archures.c index 3b68c32..70fa086 100644 --- a/bfd/archures.c +++ b/bfd/archures.c @@ -127,6 +127,7 @@ DESCRIPTION .#define bfd_mach_mips6000 6000 .#define bfd_mach_mips8000 8000 .#define bfd_mach_mips10000 10000 +.#define bfd_mach_mips4K 32 .#define bfd_mach_mips16 16 . bfd_arch_i386, {* Intel 386 *} .#define bfd_mach_i386_i386 0 diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index ca6e36b..fe3459f 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -1394,6 +1394,7 @@ enum bfd_architecture #define bfd_mach_mips8000 8000 #define bfd_mach_mips10000 10000 #define bfd_mach_mips16 16 +#define bfd_mach_mips4K 32 bfd_arch_i386, /* Intel 386 */ #define bfd_mach_i386_i386 0 #define bfd_mach_i386_i8086 1 diff --git a/bfd/cpu-mips.c b/bfd/cpu-mips.c index c52fbec..8090b7c 100644 --- a/bfd/cpu-mips.c +++ b/bfd/cpu-mips.c @@ -53,6 +53,7 @@ I_mips5000, I_mips6000, I_mips8000, I_mips10000, +I_mips4K, I_mips16 }; @@ -75,8 +76,7 @@ static const bfd_arch_info_type arch_info_struct[] = N (32, 32, bfd_mach_mips6000, "mips:6000", false, NN(I_mips6000)), N (64, 64, bfd_mach_mips8000, "mips:8000", false, NN(I_mips8000)), N (64, 64, bfd_mach_mips10000, "mips:10000", false, NN(I_mips10000)), - - + N (32, 32, bfd_mach_mips4K, "mips:4K", false, NN(I_mips4K)), N (64, 64, bfd_mach_mips16, "mips:16", false, 0), }; diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index 5ab839e..fd8847a 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); |