mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
2005-08-09 H.J. Lu <hongjiu.lu@intel.com>
* elfxx-ia64.c (elfNN_ia64_final_link): Reset gp.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2005-08-09 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* elfxx-ia64.c (elfNN_ia64_final_link): Reset gp.
|
||||||
|
|
||||||
2005-08-09 Rodney Brown <rbrown@bravurasolutions.com.au>
|
2005-08-09 Rodney Brown <rbrown@bravurasolutions.com.au>
|
||||||
Nick Clifton <nickc@redhat.com>
|
Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
@ -3981,15 +3981,15 @@ elfNN_ia64_final_link (abfd, info)
|
|||||||
/* Make sure we've got ourselves a nice fat __gp value. */
|
/* Make sure we've got ourselves a nice fat __gp value. */
|
||||||
if (!info->relocatable)
|
if (!info->relocatable)
|
||||||
{
|
{
|
||||||
bfd_vma gp_val = _bfd_get_gp_value (abfd);
|
bfd_vma gp_val;
|
||||||
struct elf_link_hash_entry *gp;
|
struct elf_link_hash_entry *gp;
|
||||||
|
|
||||||
if (gp_val == 0)
|
/* We assume after gp is set, section size will only decrease. We
|
||||||
{
|
need to adjust gp for it. */
|
||||||
if (! elfNN_ia64_choose_gp (abfd, info))
|
_bfd_set_gp_value (abfd, 0);
|
||||||
return FALSE;
|
if (! elfNN_ia64_choose_gp (abfd, info))
|
||||||
gp_val = _bfd_get_gp_value (abfd);
|
return FALSE;
|
||||||
}
|
gp_val = _bfd_get_gp_value (abfd);
|
||||||
|
|
||||||
gp = elf_link_hash_lookup (elf_hash_table (info), "__gp", FALSE,
|
gp = elf_link_hash_lookup (elf_hash_table (info), "__gp", FALSE,
|
||||||
FALSE, FALSE);
|
FALSE, FALSE);
|
||||||
|
Reference in New Issue
Block a user