* readelf.c (apply_relocations): D30V is really REL.
authorAlan Modra <amodra@gmail.com>
Mon, 2 Aug 2010 13:52:49 +0000 (13:52 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 2 Aug 2010 13:52:49 +0000 (13:52 +0000)
binutils/ChangeLog
binutils/readelf.c

index ae598c14d6a74b766a93e25f242463b8b55f78d9..f9902ab2ff91d80057e094ab7cb43c186a2a3074 100644 (file)
@@ -1,3 +1,7 @@
+2010-08-02  Alan Modra  <amodra@gmail.com>
+
+       * readelf.c (apply_relocations): D30V is really REL.
+
 2010-07-23  Naveen.H.S  <naveen.S@kpitcummins.com>
            Ina Pandit  <ina.pandit@kpitcummins.com>
 
index c2bb10de2f051e18a467125a9e1072a48a51f414..614f761e94eccdaa5e2d6d1712ed429988b549d1 100644 (file)
@@ -9657,13 +9657,17 @@ apply_relocations (void * file,
          addend = 0;
          if (is_rela)
            addend += rp->r_addend;
-         /* R_XTENSA_32 and R_PJ_DATA_DIR32 are partial_inplace.  */
+         /* R_XTENSA_32, R_PJ_DATA_DIR32 and R_D30V_32_NORMAL are
+            partial_inplace.  */
          if (!is_rela
              || (elf_header.e_machine == EM_XTENSA
                  && reloc_type == 1)
              || ((elf_header.e_machine == EM_PJ
                   || elf_header.e_machine == EM_PJ_OLD)
-                 && reloc_type == 1))
+                 && reloc_type == 1)
+             || ((elf_header.e_machine == EM_D30V
+                  || elf_header.e_machine == EM_CYGNUS_D30V)
+                 && reloc_type == 12))
            addend += byte_get (rloc, reloc_size);
 
          if (is_32bit_pcrel_reloc (reloc_type)