Pull in my readelf fix from binutils-current for the new EF_SH* flags.

* readelf.c (get_machine_flags): Add logic for missing EF_SH flags.
This commit is contained in:
skrll 2006-02-17 13:14:25 +00:00
parent 2165097856
commit a105f8f3c9
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2006-02-17 Nick Hudson <nick.hudson@dsl.pipex.com>
* readelf.c (get_machine_flags): Add logic for missing EF_SH flags.
2005-04-20 Daniel Jacobowitz <dan@codesourcery.com>
* readelf.c (display_debug_frames): Use data factor for

View File

@ -2106,6 +2106,12 @@ get_machine_flags (unsigned e_flags, unsigned e_machine)
case EF_SH4_NOFPU: strcat (buf, ", sh4-nofpu"); break;
case EF_SH4A_NOFPU: strcat (buf, ", sh4a-nofpu"); break;
case EF_SH2A_NOFPU: strcat (buf, ", sh2a-nofpu"); break;
case EF_SH3_NOMMU: strcat (buf, ", sh3-nommu"); break;
case EF_SH4_NOMMU_NOFPU: strcat (buf, ", sh4-nommu-nofpu"); break;
case EF_SH2A_SH4_NOFPU: strcat (buf, ", sh2a-nofpu-or-sh4-nommu-nofpu"); break;
case EF_SH2A_SH3_NOFPU: strcat (buf, ", sh2a-nofpu-or-sh3-nommu"); break;
case EF_SH2A_SH4: strcat (buf, ", sh2a-or-sh4"); break;
case EF_SH2A_SH3E: strcat (buf, ", sh2a-or-sh3e"); break;
default: strcat (buf, ", unknown ISA"); break;
}