aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-tilepro.c
diff options
context:
space:
mode:
authorWalter Lee <walt@tilera.com>2012-09-17 10:53:38 +0000
committerWalter Lee <walt@tilera.com>2012-09-17 10:53:38 +0000
commit901e60ca41a4c6cf305775f28612cbb3afe22582 (patch)
tree09b25d598efcb41b964abf40f77da13186750bb8 /bfd/elf32-tilepro.c
parentdeec9a9d321123dc655802a6d0fade5380d8bfb7 (diff)
downloadgdb-901e60ca41a4c6cf305775f28612cbb3afe22582.zip
gdb-901e60ca41a4c6cf305775f28612cbb3afe22582.tar.gz
gdb-901e60ca41a4c6cf305775f28612cbb3afe22582.tar.bz2
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/elf32-tilepro.c')
-rw-r--r--bfd/elf32-tilepro.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-tilepro.c b/bfd/elf32-tilepro.c
index cbb65c6..f522b38 100644
--- a/bfd/elf32-tilepro.c
+++ b/bfd/elf32-tilepro.c
@@ -3092,7 +3092,7 @@ tilepro_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_TILEPRO_JOFFLONG_X1_PLT:
@@ -3511,7 +3511,7 @@ tilepro_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 = tilepro_elf_howto_table + r_type;
break;