From: Jakub Jelinek Date: Fri, 22 Feb 2002 10:06:18 +0000 (+0000) Subject: * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my X-Git-Tag: binutils-2_12~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6969a7eeb95e365209733bbda5e8d84ff2f9fd06;p=thirdparty%2Fbinutils-gdb.git * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my last patch. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 3858d5ae540..aba4b4787fb 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2002-02-22 Jakub Jelinek + + * 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-20 Peter Schauer * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are 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 cdd36d1623f..87e5dbb16b5 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -1473,7 +1473,7 @@ elf64_x86_64_relocate_section (output_bfd, info, input_bfd, input_section, rela->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