aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-xtensa.c
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2003-09-23 20:23:55 +0000
committerBob Wilson <bob.wilson@acm.org>2003-09-23 20:23:55 +0000
commitf0578e28d6fcbd36aace7256c45a945ad5d9c0c3 (patch)
treea5892a61ab9a8f5578e632d589eadcc45a5d6d73 /bfd/elf32-xtensa.c
parent274bcba01c822e0016bde9142d4f5387cd51f478 (diff)
downloadgdb-f0578e28d6fcbd36aace7256c45a945ad5d9c0c3.zip
gdb-f0578e28d6fcbd36aace7256c45a945ad5d9c0c3.tar.gz
gdb-f0578e28d6fcbd36aace7256c45a945ad5d9c0c3.tar.bz2
* elf32-xtensa.c (elf_xtensa_relocate_section): Fix typo that clobbered
dynamic relocation offsets.
Diffstat (limited to 'bfd/elf32-xtensa.c')
-rw-r--r--bfd/elf32-xtensa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c
index c9fce98..ee8f311 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)
{