sync error with x86_64.

This commit is contained in:
christos 2016-09-05 09:17:35 +00:00
parent 781b35a2d5
commit 118ae671e7
1 changed files with 6 additions and 4 deletions

View File

@ -2514,12 +2514,14 @@ readonly_dynrelocs (struct elf_link_hash_entry *h, void * inf)
{
struct bfd_link_info *info = (struct bfd_link_info *) inf;
if (info->warn_shared_textrel)
(*_bfd_error_handler)
(_("warning: dynamic relocation to `%s' in readonly section `%s'"),
h->root.root.string, s->name);
info->flags |= DF_TEXTREL;
if ((info->warn_shared_textrel && bfd_link_pic (info))
|| info->error_textrel)
info->callbacks->einfo (_("%P: %B: warning: relocation against `%s' in readonly section `%A'\n"),
p->sec->owner, h->root.root.string,
p->sec);
/* Not an error, just cut short the traversal. */
return FALSE;
}