forked from Imagelibrary/binutils-gdb
* elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for
relocatable link.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user