If marking a shared image TEXTREL, print out a warning about the section
that caused it.
This commit is contained in:
parent
723011d7ca
commit
b2757928d7
|
@ -9196,10 +9196,16 @@ ppc64_elf_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
|
|||
srel = htab->reliplt;
|
||||
srel->size += p->count * sizeof (Elf64_External_Rela);
|
||||
if ((p->sec->output_section->flags & SEC_READONLY) != 0)
|
||||
{
|
||||
if (info->warn_shared_textrel)
|
||||
(*_bfd_error_handler)
|
||||
(_("warning: dynamic relocation in readonly section `%s'"),
|
||||
p->sec->output_section->name);
|
||||
info->flags |= DF_TEXTREL;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
lgot_ents = elf_local_got_ents (ibfd);
|
||||
if (!lgot_ents)
|
||||
|
|
Loading…
Reference in New Issue