aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-mips.c
diff options
context:
space:
mode:
authorMatthew Fortune <matthew.fortune@imgtec.com>2014-10-17 11:07:17 +0100
committerMatthew Fortune <matthew.fortune@imgtec.com>2014-10-22 10:37:26 +0100
commit00ac7aa072c90d95615bd1c89c699f0ea5eeae22 (patch)
treecc5ed1cb8a3284f7efae4a5b670ff20dfc81fa83 /bfd/elfxx-mips.c
parent60822996412bf596f4f786492b0d787ff82417ec (diff)
downloadgdb-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 'bfd/elfxx-mips.c')
-rw-r--r--bfd/elfxx-mips.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index a1e9945..61c363a 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -15507,6 +15507,8 @@ print_mips_ases (FILE *file, unsigned int mask)
fputs ("\n\tXPA ASE", file);
if (mask == 0)
fprintf (file, "\n\t%s", _("None"));
+ else if ((mask & ~AFL_ASE_MASK) != 0)
+ fprintf (stdout, "\n\t%s (%x)", _("Unknown"), mask & ~AFL_ASE_MASK);
}
static void
@@ -15572,7 +15574,7 @@ print_mips_isa_ext (FILE *file, unsigned int isa_ext)
fputs ("ST Microelectronics Loongson 2F", file);
break;
default:
- fputs (_("Unknown"), file);
+ fprintf (file, "%s (%d)", _("Unknown"), isa_ext);
break;
}
}