diff options
author | Matthew Fortune <matthew.fortune@imgtec.com> | 2014-10-17 11:07:17 +0100 |
---|---|---|
committer | Matthew Fortune <matthew.fortune@imgtec.com> | 2014-10-22 10:37:26 +0100 |
commit | 00ac7aa072c90d95615bd1c89c699f0ea5eeae22 (patch) | |
tree | cc5ed1cb8a3284f7efae4a5b670ff20dfc81fa83 /binutils | |
parent | 60822996412bf596f4f786492b0d787ff82417ec (diff) | |
download | gdb-00ac7aa072c90d95615bd1c89c699f0ea5eeae22.zip gdb-00ac7aa072c90d95615bd1c89c699f0ea5eeae22.tar.gz gdb-00ac7aa072c90d95615bd1c89c699f0ea5eeae22.tar.bz2 |
Show information about unknown ASEs and extensions in .MIPS.abiflags
bfd/
* elfxx-mips.c (print_mips_ases): Print unknown ASEs.
(print_mips_isa_ext): Print the value of an unknown extension.
binutils/
* readelf.c (print_mips_ases): Print unknown ASEs.
(print_mips_isa_ext): Print the value of an unknown extension.
include/
* elf/mips.h (AFL_ASE_MASK): Define.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/readelf.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index eca6400..2e2d6f5 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2014-10-22 Matthew Fortune <matthew.fortune@imgtec.com> + + * readelf.c (print_mips_ases): Print unknown ASEs. + (print_mips_isa_ext): Print the value of an unknown extension. + 2014-10-15 Tristan Gingold <gingold@adacore.com> * configure: Regenerate. diff --git a/binutils/readelf.c b/binutils/readelf.c index 58ccd93..bc79f03 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -12723,6 +12723,8 @@ print_mips_ases (unsigned int mask) fputs ("\n\tXPA ASE", stdout); if (mask == 0) fprintf (stdout, "\n\t%s", _("None")); + else if ((mask & ~AFL_ASE_MASK) != 0) + fprintf (stdout, "\n\t%s (%x)", _("Unknown"), mask & ~AFL_ASE_MASK); } static void @@ -12788,7 +12790,7 @@ print_mips_isa_ext (unsigned int isa_ext) fputs ("ST Microelectronics Loongson 2F", stdout); break; default: - fputs (_("Unknown"), stdout); + fprintf (stdout, "%s (%d)", _("Unknown"), isa_ext); } } |