This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Additional FR-V binutils maintainer
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Dave Brolley <brolley at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: 02 Sep 2004 05:24:48 -0300
- Subject: Re: Additional FR-V binutils maintainer
- Organization: Red Hat Global Engineering Services Compiler Team
- References: <41334F03.1080302@redhat.com>
On Aug 30, 2004, Dave Brolley <brolley@redhat.com> wrote:
> Alexandre Oliva has offered to assume co-maintainership of this port
> along with me and I have agreed.
> Welcome aboard Alex!
Thanks, Dave.
My first patch as official co-maintainer follows. It was driving me
nuts to have to mentally map the flags to FR-V machine types, so I
figured readelf should do that.
I'm checking in it, regression tested on i686-pc-linux-gnu-x-frv-elf.
Index: binutils/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* MAINTAINERS: Add self as co-maintainer of FR-V.
* readelf.c (get_machine_flags): Print FR-V cpu types.
Index: binutils/MAINTAINERS
===================================================================
RCS file: /cvs/uberbaum/./binutils/MAINTAINERS,v
retrieving revision 1.75
diff -u -p -r1.75 MAINTAINERS
--- binutils/MAINTAINERS 7 Jul 2004 17:28:48 -0000 1.75
+++ binutils/MAINTAINERS 2 Sep 2004 08:21:18 -0000
@@ -66,6 +66,7 @@ responsibility among the other maintaine
DWARF2 Jason Merrill <jason@redhat.com>
FR30 Dave Brolley <brolley@redhat.com>
FRV Dave Brolley <brolley@redhat.com>
+ FRV Alexandre Oliva <aoliva@redhat.com>
HPPA Dave Anglin <dave.anglin@nrc.ca>
HPPA elf32 Alan Modra <amodra@bigpond.net.au>
HPPA elf64 Jeff Law <law@redhat.com> [Basic maintainance only]
Index: binutils/readelf.c
===================================================================
RCS file: /cvs/uberbaum/./binutils/readelf.c,v
retrieving revision 1.250
diff -u -p -r1.250 readelf.c
--- binutils/readelf.c 16 Aug 2004 00:09:19 -0000 1.250
+++ binutils/readelf.c 2 Sep 2004 08:21:22 -0000
@@ -1872,6 +1872,46 @@ get_machine_flags (unsigned e_flags, uns
decode_ARM_machine_flags (e_flags, buf);
break;
+ case EM_CYGNUS_FRV:
+ switch (e_flags & EF_FRV_CPU_MASK)
+ {
+ case EF_FRV_CPU_GENERIC:
+ break;
+
+ default:
+ strcat (buf, ", fr???");
+ break;
+
+ case EF_FRV_CPU_FR300:
+ strcat (buf, ", fr300");
+ break;
+
+ case EF_FRV_CPU_FR400:
+ strcat (buf, ", fr400");
+ break;
+ case EF_FRV_CPU_FR405:
+ strcat (buf, ", fr405");
+ break;
+
+ case EF_FRV_CPU_FR450:
+ strcat (buf, ", fr450");
+ break;
+
+ case EF_FRV_CPU_FR500:
+ strcat (buf, ", fr500");
+ break;
+ case EF_FRV_CPU_FR550:
+ strcat (buf, ", fr550");
+ break;
+
+ case EF_FRV_CPU_SIMPLE:
+ strcat (buf, ", simple");
+ break;
+ case EF_FRV_CPU_TOMCAT:
+ strcat (buf, ", tomcat");
+ break;
+ }
+
case EM_68K:
if (e_flags & EF_CPU32)
strcat (buf, ", cpu32");
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}