MIPS/readelf: Use the `d_val' dynamic entry member with the relevant tags
authorMaciej W. Rozycki <macro@imgtec.com>
Wed, 18 May 2016 03:30:50 +0000 (04:30 +0100)
committerMaciej W. Rozycki <macro@imgtec.com>
Wed, 18 May 2016 03:36:52 +0000 (04:36 +0100)
binutils/
* readelf.c (dynamic_section_mips_val) <DT_MIPS_RLD_VERSION>
<DT_MIPS_LOCAL_GOTNO, DT_MIPS_CONFLICTNO, DT_MIPS_LIBLISTNO>
<DT_MIPS_SYMTABNO, DT_MIPS_UNREFEXTNO, DT_MIPS_HIPAGENO>
<DT_MIPS_DELTA_CLASS_NO, DT_MIPS_DELTA_INSTANCE_NO>
<DT_MIPS_DELTA_RELOC_NO, DT_MIPS_DELTA_SYM_NO>
<DT_MIPS_DELTA_CLASSSYM_NO, DT_MIPS_COMPACT_SIZE>: Use the
`d_val' rather than `d_ptr' member of the dynamic entry.

binutils/ChangeLog
binutils/readelf.c

index faa9b786120f7f65765ab58c1e341b6d82dcafd9..7596e037912fb8b24ae9715724977e5f3a184df0 100644 (file)
@@ -1,3 +1,13 @@
+2016-05-18  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * readelf.c (dynamic_section_mips_val) <DT_MIPS_RLD_VERSION>
+       <DT_MIPS_LOCAL_GOTNO, DT_MIPS_CONFLICTNO, DT_MIPS_LIBLISTNO>
+       <DT_MIPS_SYMTABNO, DT_MIPS_UNREFEXTNO, DT_MIPS_HIPAGENO>
+       <DT_MIPS_DELTA_CLASS_NO, DT_MIPS_DELTA_INSTANCE_NO>
+       <DT_MIPS_DELTA_RELOC_NO, DT_MIPS_DELTA_SYM_NO>
+       <DT_MIPS_DELTA_CLASSSYM_NO, DT_MIPS_COMPACT_SIZE>: Use the
+       `d_val' rather than `d_ptr' member of the dynamic entry.
+
 2016-05-17  Maciej W. Rozycki  <macro@imgtec.com>
 
        * testsuite/lib/binutils-common.exp (supports_gnu_unique): New
index 61f2939fdc284fb7521cf700a35eba0a3cdea156..25ccb6a7dde3e04529c34bfdff44f3804f6dbfca 100644 (file)
@@ -8743,7 +8743,7 @@ dynamic_section_mips_val (Elf_Internal_Dyn * entry)
     case DT_MIPS_DELTA_SYM_NO:
     case DT_MIPS_DELTA_CLASSSYM_NO:
     case DT_MIPS_COMPACT_SIZE:
-      print_vma (entry->d_un.d_ptr, DEC);
+      print_vma (entry->d_un.d_val, DEC);
       break;
 
     default: