aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-mips.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2009-02-12 08:28:19 +0000
committerNathan Sidwell <nathan@codesourcery.com>2009-02-12 08:28:19 +0000
commit453f5985b13e35161984bf1bf657bbab11515aa4 (patch)
treef866c91ec1dd2baed501b15ca2570ac0b9007f13 /bfd/elf32-mips.c
parentfb6e1a60f0ee2975a6317d494463358c1aa13758 (diff)
downloadgdb-453f5985b13e35161984bf1bf657bbab11515aa4.zip
gdb-453f5985b13e35161984bf1bf657bbab11515aa4.tar.gz
gdb-453f5985b13e35161984bf1bf657bbab11515aa4.tar.bz2
* elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for
relocatable link.
Diffstat (limited to 'bfd/elf32-mips.c')
-rw-r--r--bfd/elf32-mips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c
index 6c09ce5..c928586 100644
--- a/bfd/elf32-mips.c
+++ b/bfd/elf32-mips.c
@@ -1005,7 +1005,7 @@ mips_elf_final_gp (bfd *output_bfd, asymbol *symbol, bfd_boolean relocatable,
if (relocatable)
{
/* Make up a value. */
- *pgp = symbol->section->output_section->vma + 0x4000;
+ *pgp = symbol->section->output_section->vma /*+ 0x4000*/;
_bfd_set_gp_value (output_bfd, *pgp);
}
else if (!mips_elf_assign_gp (output_bfd, pgp))