Show information about unknown ASEs and extensions in .MIPS.abiflags
authorMatthew Fortune <matthew.fortune@imgtec.com>
Fri, 17 Oct 2014 10:07:17 +0000 (11:07 +0100)
committerMatthew Fortune <matthew.fortune@imgtec.com>
Wed, 22 Oct 2014 09:37:26 +0000 (10:37 +0100)
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.

bfd/ChangeLog
bfd/elfxx-mips.c
binutils/ChangeLog
binutils/readelf.c
include/ChangeLog
include/elf/mips.h

index 73605d7c5b8fdeabc7be2ff598038652efb42dd6..513b8413783c6d87a728b7003fcc5c110e43258b 100644 (file)
@@ -1,3 +1,8 @@
+2014-10-22  Matthew Fortune  <matthew.fortune@imgtec.com>
+
+       * elfxx-mips.c (print_mips_ases): Print unknown ASEs.
+       (print_mips_isa_ext): Print the value of an unknown extension.
+
 2014-10-21  Alan Modra  <amodra@gmail.com>
 
        * elf64-ppc.c (ppc64_elf_tls_optimize): Ignore relocs against toc
index a1e9945c79f1a3118fbd9585f661361e3f4ac120..61c363a9460c332ea20bf93725d06384f59ad6c8 100644 (file)
@@ -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;
     }
 }
index eca640021c3ccbe3bff8b0842802db1f79da897a..2e2d6f5d16f55b449bd1b33ff7c79b939b0c40a6 100644 (file)
@@ -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.
index 58ccd93929785b17e61750aa88683cfacfa7dcd0..bc79f036f5a3ad2fb959a3e97394d64178d204be 100644 (file)
@@ -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);
     }
 }
 
index 7acd73dbdcb805fe9c85447a87b802a69475fb3b..1eec0a47a9a3300d3d92d19b97cecc07e59fe768 100644 (file)
@@ -1,3 +1,7 @@
+2014-10-22  Matthew Fortune  <matthew.fortune@imgtec.com>
+
+       * elf/mips.h (AFL_ASE_MASK): Define.
+
 2014-09-26  Max Ostapenko  <m.ostapenko@partner.samsung.com>
 
        * libiberty.h (PEX_STDOUT_APPEND): New flag.
index 1fa69c15c31c230b8351c8bba28c29330e0745ed..2ed6acd288d88d8cffa19a4f693dc138f0f9d824 100644 (file)
@@ -1224,6 +1224,7 @@ extern void bfd_mips_elf_swap_abiflags_v0_out
 #define AFL_ASE_MIPS16       0x00000400 /* MIPS16 ASE.  */
 #define AFL_ASE_MICROMIPS    0x00000800 /* MICROMIPS ASE.  */
 #define AFL_ASE_XPA          0x00001000 /* XPA ASE.  */
+#define AFL_ASE_MASK         0x00001fff /* All ASEs.  */
 
 /* Values for the isa_ext word of an ABI flags structure.  */
 
This page took 0.04048 seconds and 4 git commands to generate.