From: Nathan Sidwell Date: Thu, 12 Feb 2009 08:28:19 +0000 (+0000) Subject: * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for X-Git-Tag: sid-snapshot-20090301~130 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=453f5985b13e35161984bf1bf657bbab11515aa4;p=external%2Fbinutils.git * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for relocatable link. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index fb902bd..9343b34 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2009-02-12 Nathan Sidwell + + * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for + relocatable link. + 2009-02-09 Alan Modra * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors. 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))