This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Added R_M32R_REL32 relocation


Hi Nick,

The following was not enough to use R_M32R_REL32.

http://sourceware.org/ml/binutils/2005-07/msg00355.html

It will cause of a miss count of relocation entries
in dynamic section at the link.

Please commit this patch too.

Regards,

Kazuhiro Inaoka

bfd/ChangeLog

2005-07-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>

* elf32-m32r.c (m32r_elf_check_relocs): Fixed for R_M32R_REL32.


Index: elf32-m32r.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-m32r.c,v
retrieving revision 1.70
diff -u -r1.70 elf32-m32r.c
--- elf32-m32r.c	20 Jul 2005 11:35:01 -0000	1.70
+++ elf32-m32r.c	22 Jul 2005 01:09:25 -0000
@@ -4011,7 +4011,8 @@
 
               p->count += 1;
               if (ELF32_R_TYPE (rel->r_info) == R_M32R_26_PCREL_RELA
-                  || ELF32_R_TYPE (rel->r_info) == R_M32R_18_PCREL_RELA)
+                  || ELF32_R_TYPE (rel->r_info) == R_M32R_18_PCREL_RELA
+                  || ELF32_R_TYPE (rel->r_info) == R_M32R_REL32)
                 p->pc_count += 1;
             }
           break;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]