diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2004-07-28 08:55:41 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2004-07-28 08:55:41 +0000 |
commit | ccde11002308f4d16bd16b343ed1d3a3b0077e46 (patch) | |
tree | 09b1339de951107643104204461ab996a504ca0c /binutils | |
parent | 5a44ea29aea73cce2be45f6c16163053e2e2e55b (diff) | |
download | gdb-ccde11002308f4d16bd16b343ed1d3a3b0077e46.zip gdb-ccde11002308f4d16bd16b343ed1d3a3b0077e46.tar.gz gdb-ccde11002308f4d16bd16b343ed1d3a3b0077e46.tar.bz2 |
2003-07-08 Alexandre Oliva <aoliva@redhat.com>
* readelf.c (get_machine_flags <EM_SH)): Handle EF_SH4_NOFPU and
EF_SH4A_NOFPU.
2003-06-12 Alexandre Oliva <aoliva@redhat.com>
* readelf.c (get_machine_flags <EM_SH>): Print SH ISA name.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 8 | ||||
-rw-r--r-- | binutils/readelf.c | 21 |
2 files changed, 29 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 8ab3d7a..d19e878 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,11 @@ +2004-07-28 Alexandre Oliva <aoliva@redhat.com> + + 2003-07-08 Alexandre Oliva <aoliva@redhat.com> + * readelf.c (get_machine_flags <EM_SH)): Handle EF_SH4_NOFPU and + EF_SH4A_NOFPU. + 2003-06-12 Alexandre Oliva <aoliva@redhat.com> + * readelf.c (get_machine_flags <EM_SH>): Print SH ISA name. + 2004-07-21 H.J. Lu <hongjiu.lu@intel.com> * objcopy.c (filter_symbols): Use bfd_coff_get_comdat_section diff --git a/binutils/readelf.c b/binutils/readelf.c index 0364eda..194bfba 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -1995,6 +1995,27 @@ get_machine_flags (unsigned e_flags, unsigned e_machine) break; + case EM_SH: + switch ((e_flags & EF_SH_MACH_MASK)) + { + case EF_SH1: strcat (buf, ", sh1"); break; + case EF_SH2: strcat (buf, ", sh2"); break; + case EF_SH3: strcat (buf, ", sh3"); break; + case EF_SH_DSP: strcat (buf, ", sh-dsp"); break; + case EF_SH3_DSP: strcat (buf, ", sh3-dsp"); break; + case EF_SH4AL_DSP: strcat (buf, ", sh4al-dsp"); break; + case EF_SH3E: strcat (buf, ", sh3e"); break; + case EF_SH4: strcat (buf, ", sh4"); break; + case EF_SH5: strcat (buf, ", sh5"); break; + case EF_SH2E: strcat (buf, ", sh2e"); break; + case EF_SH4A: strcat (buf, ", sh4a"); break; + case EF_SH4_NOFPU: strcat (buf, ", sh4-nofpu"); break; + case EF_SH4A_NOFPU: strcat (buf, ", sh4a-nofpu"); break; + default: strcat (buf, ", unknown ISA"); break; + } + + break; + case EM_SPARCV9: if (e_flags & EF_SPARC_32PLUS) strcat (buf, ", v8+"); |