From: Bob Wilson Date: Tue, 23 Sep 2003 20:23:55 +0000 (+0000) Subject: * elf32-xtensa.c (elf_xtensa_relocate_section): Fix typo that clobbered X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f0578e28d6fcbd36aace7256c45a945ad5d9c0c3;p=binutils-gdb.git * elf32-xtensa.c (elf_xtensa_relocate_section): Fix typo that clobbered dynamic relocation offsets. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a11ef676619..8d8e44c3660 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2003-09-23 Bob Wilson + + * elf32-xtensa.c (elf_xtensa_relocate_section): Fix typo that clobbered + dynamic relocation offsets. + 2003-09-23 Alan Modra * simple.c (bfd_simple_get_relocated_section_contents): Free the diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c index c9fce980db0..ee8f311080c 100644 --- a/bfd/elf32-xtensa.c +++ b/bfd/elf32-xtensa.c @@ -2081,8 +2081,8 @@ elf_xtensa_relocate_section (output_bfd, info, input_bfd, memset (&outrel, 0, sizeof outrel); else { - outrel.r_offset = (input_section->output_section->vma - + input_section->output_offset); + outrel.r_offset += (input_section->output_section->vma + + input_section->output_offset); if (dynamic_symbol) {