summaryrefslogtreecommitdiff
path: root/bfd/elfxx-tilegx.c
diff options
context:
space:
mode:
authorwalt <walt>2012-09-17 10:53:37 +0000
committerwalt <walt>2012-09-17 10:53:37 +0000
commit0396e0e0d0d46e23673edb6a03e210fe9ad24a09 (patch)
treef1c8ea230155de2e5f1ca188f73c8caa39333e88 /bfd/elfxx-tilegx.c
parent8e2da0d51b26ddc618205c70f8c2ad62f9d6e5f8 (diff)
downloadbinutils-redhat-0396e0e0d0d46e23673edb6a03e210fe9ad24a09.tar.gz
Fix computation of got relocations for when .got.plt section is merged
with .got. * elf32-tilepro.c (tilepro_elf_relocate_section): Fix computation of got relocations for when .got.plt section is merged with .got. * elfxx-tilegx.c (tilegx_elf_relocate_section): Ditto.
Diffstat (limited to 'bfd/elfxx-tilegx.c')
-rw-r--r--bfd/elfxx-tilegx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elfxx-tilegx.c b/bfd/elfxx-tilegx.c
index 3bcdd3a8d3..a57654faca 100644
--- a/bfd/elfxx-tilegx.c
+++ b/bfd/elfxx-tilegx.c
@@ -3479,7 +3479,7 @@ tilegx_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
local_got_offsets[r_symndx] |= 1;
}
}
- relocation = htab->elf.sgot->output_offset + off - got_base;
+ relocation = off;
break;
case R_TILEGX_JUMPOFF_X1_PLT:
@@ -3926,7 +3926,7 @@ tilegx_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
if (off >= (bfd_vma) -2)
abort ();
- relocation = htab->elf.sgot->output_offset + off - got_base;
+ relocation = off;
unresolved_reloc = FALSE;
howto = tilegx_elf_howto_table + r_type;
break;