summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-07-22 10:27:44 +0000
committerNick Clifton <nickc@redhat.com>2005-07-22 10:27:44 +0000
commitd7ebe413fe0dcf219e147fc0f11ae096884583a5 (patch)
tree8a92eb139350bb33a1358e7710afb0a05db65992 /bfd
parent0940d8ee24be3b4f3c1bd71c0f0ed7a3fcce6c6e (diff)
downloadgdb-d7ebe413fe0dcf219e147fc0f11ae096884583a5.tar.gz
(m32r_elf_check_relocs): Fix pc count for R_M32R_REL32.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-m32r.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 4df5dbc79f5..accba020957 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2005-07-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
+
+ * elf32-m32r.c (m32r_elf_check_relocs): Fix pc count for
+ R_M32R_REL32.
+
2005-07-21 Ben Elliston <bje@gnu.org>
* Makefile.am (BFD32_BACKENDS): Remove cf-m68klynx.lo.
diff --git a/bfd/elf32-m32r.c b/bfd/elf32-m32r.c
index 23075d6167f..082f496ccd0 100644
--- a/bfd/elf32-m32r.c
+++ b/bfd/elf32-m32r.c
@@ -4011,6 +4011,7 @@ m32r_elf_check_relocs (bfd *abfd,
p->count += 1;
if (ELF32_R_TYPE (rel->r_info) == R_M32R_26_PCREL_RELA
+ || ELF32_R_TYPE (rel->r_info) == R_M32R_REL32
|| ELF32_R_TYPE (rel->r_info) == R_M32R_18_PCREL_RELA)
p->pc_count += 1;
}