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 /binutils | |
parent | 9b14b192bba894ebaa57346c116d8feda54829de (diff) | |
download | gdb-156c2f8bf75a86dfa719220f9f259196d9d2491b.zip gdb-156c2f8bf75a86dfa719220f9f259196d9d2491b.tar.gz gdb-156c2f8bf75a86dfa719220f9f259196d9d2491b.tar.bz2 |
Add support for the MIPS32
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 6 | ||||
-rw-r--r-- | binutils/NEWS | 2 | ||||
-rw-r--r-- | binutils/readelf.c | 10 |
3 files changed, 18 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index d039943..4632f34 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2000-09-13 Anders Norlander <anorland@acc.umu.se> + + * readelf.c (get_machine_flags): Also print EF_MIPS_MACH field. + + * NEWS: Mention support for MIPS32. + 2000-09-08 Nick Clifton <nickc@redhat.com> * MAINTAINERS: Add Stephane Carrez as maintainer for 68HC[11|12]. diff --git a/binutils/NEWS b/binutils/NEWS index 61555af..5ad5c8f 100644 --- a/binutils/NEWS +++ b/binutils/NEWS @@ -1,5 +1,7 @@ -*- text -*- +* Support for the MIPS32, by Anders Norlander. + * Support for the i860, by Jason Eckhardt. * Support for CRIS (Axis Communications ETRAX series). diff --git a/binutils/readelf.c b/binutils/readelf.c index 4bb4cbd..d968673 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -1461,6 +1461,16 @@ get_machine_flags (e_flags, e_machine) if ((e_flags & EF_MIPS_ARCH) == E_MIPS_ARCH_4) strcat (buf, ", mips4"); + + switch ((e_flags & EF_MIPS_MACH)) + { + case E_MIPS_MACH_3900: strcat (buf, ", 3900"); break; + case E_MIPS_MACH_4010: strcat (buf, ", 4010"); break; + case E_MIPS_MACH_4100: strcat (buf, ", 4100"); break; + case E_MIPS_MACH_4650: strcat (buf, ", 4650"); break; + case E_MIPS_MACH_4111: strcat (buf, ", 4111"); break; + case E_MIPS_MACH_MIPS32: strcat (buf, ", mips32"); break; + } break; case EM_SPARCV9: |