This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[MIPS PATCH RFA] make bfd print ASE flags that readelf prints.
- From: cgd at broadcom dot com
- To: binutils at sources dot redhat dot com
- Date: 24 Apr 2002 11:40:29 -0700
- Subject: [MIPS PATCH RFA] make bfd print ASE flags that readelf prints.
The patch below causes bfd (_bfd_mips_elf_print_private_bfd_data) to
print out info for the MIPS e_flags MDMX and MIPS16 flags.
These are already printed by readelf, so I figured that BFD should
probably print them as well.
Tested only by gmake && gmake check on binutils, host x86-linux,
targets mips-linux and mips64-elf. No failures.
cgd
===================================================================
2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
* elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): If MDMX or
MIPS-16 ASE flags are set, print something to indicate that.
Index: elfxx-mips.c
===================================================================
RCS file: /cvs/src/src/bfd/elfxx-mips.c,v
retrieving revision 1.2
diff -u -p -r1.2 elfxx-mips.c
--- elfxx-mips.c 4 Apr 2002 19:53:37 -0000 1.2
+++ elfxx-mips.c 24 Apr 2002 18:29:17 -0000
@@ -7761,6 +7761,12 @@ _bfd_mips_elf_print_private_bfd_data (ab
else
fprintf (file, _(" [unknown ISA]"));
+ if (elf_elfheader (abfd)->e_flags & EF_MIPS_ARCH_ASE_MDMX)
+ fprintf (file, _(" [mdmx]"));
+
+ if (elf_elfheader (abfd)->e_flags & EF_MIPS_ARCH_ASE_M16)
+ fprintf (file, _(" [mips16]"));
+
if (elf_elfheader (abfd)->e_flags & EF_MIPS_32BITMODE)
fprintf (file, _(" [32bitmode]"));
else