This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[applied] Make readelf aware of mips32r2
- From: Richard Sandiford <rsandifo at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: 02 Jan 2003 21:21:44 +0000
- Subject: [applied] Make readelf aware of mips32r2
Committed as obvious. It's tested by a patch I'm about to post.
Richard
* readelf.c (get_machine_flags): Handle E_MIPS_ARCH_32R2.
Index: binutils/readelf.c
===================================================================
RCS file: /cvs/src/src/binutils/readelf.c,v
retrieving revision 1.187
diff -c -d -p -F^[(a-zA-Z0-9_^#] -r1.187 readelf.c
*** binutils/readelf.c 30 Dec 2002 19:25:11 -0000 1.187
--- binutils/readelf.c 2 Jan 2003 21:16:16 -0000
***************
*** 1,5 ****
/* readelf.c -- display contents of an ELF format file
! Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
Originally developed by Eric Youngdale <eric@andante.jic.com>
Modifications by Nick Clifton <nickc@redhat.com>
--- 1,5 ----
/* readelf.c -- display contents of an ELF format file
! Copyright 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
Originally developed by Eric Youngdale <eric@andante.jic.com>
Modifications by Nick Clifton <nickc@redhat.com>
*************** get_machine_flags (e_flags, e_machine)
*** 1994,1999 ****
--- 1994,2000 ----
case E_MIPS_ARCH_4: strcat (buf, ", mips4"); break;
case E_MIPS_ARCH_5: strcat (buf, ", mips5"); break;
case E_MIPS_ARCH_32: strcat (buf, ", mips32"); break;
+ case E_MIPS_ARCH_32R2: strcat (buf, ", mips32r2"); break;
case E_MIPS_ARCH_64: strcat (buf, ", mips64"); break;
default: strcat (buf, ", unknown ISA"); break;
}