If marking a shared image TEXTREL, print out a warning about the section

that caused it.
This commit is contained in:
matt 2014-03-06 09:33:14 +00:00
parent 723011d7ca
commit b2757928d7
1 changed files with 7 additions and 1 deletions

View File

@ -9196,7 +9196,13 @@ 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)
info->flags |= DF_TEXTREL;
{
if (info->warn_shared_textrel)
(*_bfd_error_handler)
(_("warning: dynamic relocation in readonly section `%s'"),
p->sec->output_section->name);
info->flags |= DF_TEXTREL;
}
}
}
}