summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2002-02-22 10:03:03 +0000
committerJakub Jelinek <jakub@redhat.com>2002-02-22 10:03:03 +0000
commit96df1fd9bb23583c8f4d168ed1df72edf6e727ea (patch)
treea36ca8c2dc096fe1b9ae6a611680b14b2e28aa0e /bfd
parenta5aa29b71fae3293651e7d8421a98a5191830553 (diff)
downloadgdb-96df1fd9bb23583c8f4d168ed1df72edf6e727ea.tar.gz
* elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
last patch. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elf64-sh64.c2
-rw-r--r--bfd/elf64-x86-64.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index c6fca849c42..c92ae2e5d6d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2002-02-22 Jakub Jelinek <jakub@redhat.com>
+
+ * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
+ last patch.
+ * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
+
2002-02-21 Andreas Jaeger <aj@suse.de>
* elf64-x86-64.c: Major rework that introduces all recent changes
diff --git a/bfd/elf64-sh64.c b/bfd/elf64-sh64.c
index 901bfa5bda6..5b11aa86954 100644
--- a/bfd/elf64-sh64.c
+++ b/bfd/elf64-sh64.c
@@ -1754,7 +1754,7 @@ sh_elf64_relocate_section (output_bfd, info, input_bfd, input_section,
if (outrel.r_offset == (bfd_vma) -1)
skip = true;
- else if (outrel.r_offset == (bfd_vma) -1)
+ else if (outrel.r_offset == (bfd_vma) -2)
skip = true, relocate = true;
outrel.r_offset += (input_section->output_section->vma
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 32bf260483d..f2d2e64d502 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -1776,7 +1776,7 @@ elf64_x86_64_relocate_section (output_bfd, info, input_bfd, input_section,
rel->r_offset);
if (outrel.r_offset == (bfd_vma) -1)
skip = true;
- else if (outrel.r_offset == (bfd_vma) -1)
+ else if (outrel.r_offset == (bfd_vma) -2)
skip = true, relocate = true;
outrel.r_offset += (input_section->output_section->vma