* elf32-xtensa.c (elf_xtensa_relocate_section): Fix typo that clobbered
authorBob Wilson <bob.wilson@acm.org>
Tue, 23 Sep 2003 20:23:55 +0000 (20:23 +0000)
committerBob Wilson <bob.wilson@acm.org>
Tue, 23 Sep 2003 20:23:55 +0000 (20:23 +0000)
dynamic relocation offsets.

bfd/ChangeLog
bfd/elf32-xtensa.c

index a11ef6766193c78d9cb5bef7902be4299b25a10b..8d8e44c3660024bc044715c2acb0ddb4b15065c3 100644 (file)
@@ -1,3 +1,8 @@
+2003-09-23  Bob Wilson  <bob.wilson@acm.org>
+
+       * elf32-xtensa.c (elf_xtensa_relocate_section): Fix typo that clobbered
+       dynamic relocation offsets.
+
 2003-09-23  Alan Modra  <alan@modra.org>
 
        * simple.c (bfd_simple_get_relocated_section_contents): Free the
index c9fce980db03196fc0abe019aa7bde06e3d348fb..ee8f311080c2954dcb5f03847b187778b00211c6 100644 (file)
@@ -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)
                    {