+2020-06-10 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elfnn-ia64.c (elfNN_ia64_link_hash_table): Remove reltext.
+ (allocate_dynrel_entries): Set DF_TEXTREL instead of reltext.
+ (elfNN_ia64_size_dynamic_sections): Check DF_TEXTREL instead
+ of reltext.
+
2020-06-10 H.J. Lu <hongjiu.lu@intel.com>
PR ld/26094
asection *rel_pltoff_sec; /* Dynamic relocation section for same. */
bfd_size_type minplt_entries; /* Number of minplt entries. */
- unsigned reltext : 1; /* Are there relocs against readonly sections? */
unsigned self_dtpmod_done : 1;/* Has self DTPMOD entry been finished? */
bfd_vma self_dtpmod_offset; /* .got offset to self DTPMOD entry. */
/* There are maybe R_IA64_GPREL22 relocations, including those
abort ();
}
if (rent->reltext)
- ia64_info->reltext = 1;
+ x->info->flags |= DF_TEXTREL;
rent->srel->size += sizeof (ElfNN_External_Rela) * count;
}
|| !add_dynamic_entry (DT_RELAENT, sizeof (ElfNN_External_Rela)))
return FALSE;
- if (ia64_info->reltext)
+ if ((info->flags & DF_TEXTREL) != 0)
{
if (!add_dynamic_entry (DT_TEXTREL, 0))
return FALSE;
- info->flags |= DF_TEXTREL;
}
}