aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-mips.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2012-05-19 19:30:45 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2012-05-19 19:30:45 +0000
commita44acb1ed2e00707e619ef389d38572de2530d76 (patch)
treebe41b788103077d8c5cbfe126d3d939ec154d36d /bfd/elfxx-mips.c
parent751c1fe7eaecddf885f29a2aba76981e495371f0 (diff)
downloadgdb-a44acb1ed2e00707e619ef389d38572de2530d76.zip
gdb-a44acb1ed2e00707e619ef389d38572de2530d76.tar.gz
gdb-a44acb1ed2e00707e619ef389d38572de2530d76.tar.bz2
* elf64-mips.c (elf_backend_got_header_size): Correct definition.
* elfxx-mips.c (_bfd_mips_elf_adjust_dynamic_symbol): Use the ELF backend's GOT header size instead of hardcoding it.
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r--bfd/elfxx-mips.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 6dd0592..9b4ccbf 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -8665,7 +8665,8 @@ _bfd_mips_elf_adjust_dynamic_symbol (struct bfd_link_info *info,
/* On non-VxWorks targets, the first two entries in .got.plt
are reserved. */
if (!htab->is_vxworks)
- htab->sgotplt->size += 2 * MIPS_ELF_GOT_SIZE (dynobj);
+ htab->sgotplt->size
+ += get_elf_backend_data (dynobj)->got_header_size;
/* On VxWorks, also allocate room for the header's
.rela.plt.unloaded entries. */