* elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for
authorNathan Sidwell <nathan@codesourcery.com>
Thu, 12 Feb 2009 08:28:19 +0000 (08:28 +0000)
committerNathan Sidwell <nathan@codesourcery.com>
Thu, 12 Feb 2009 08:28:19 +0000 (08:28 +0000)
relocatable link.

bfd/ChangeLog
bfd/elf32-mips.c

index fb902bd9f18ce1a20c1957770859215208ae39f7..9343b3466b1eba812ca56b4597eb50407d90e8c3 100644 (file)
@@ -1,3 +1,8 @@
+2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for
+       relocatable link.
+
 2009-02-09  Alan Modra  <amodra@bigpond.net.au>
 
        * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors.
index 6c09ce5c4577158cef6c115e2db935210599aafc..c928586d1109fe9c88571e15c657fdf605b799f3 100644 (file)
@@ -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))