Module Name: src
Committed By: christos
Date: Mon Sep 5 09:17:35 UTC 2016
Modified Files:
src/external/gpl3/binutils/dist/bfd: elfxx-sparc.c
Log Message:
sync error with x86_64.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/binutils/dist/bfd/elfxx-sparc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/binutils/dist/bfd/elfxx-sparc.c
diff -u src/external/gpl3/binutils/dist/bfd/elfxx-sparc.c:1.8 src/external/gpl3/binutils/dist/bfd/elfxx-sparc.c:1.9
--- src/external/gpl3/binutils/dist/bfd/elfxx-sparc.c:1.8 Wed Jun 15 10:47:23 2016
+++ src/external/gpl3/binutils/dist/bfd/elfxx-sparc.c Mon Sep 5 05:17:35 2016
@@ -2514,12 +2514,14 @@ readonly_dynrelocs (struct elf_link_hash
{
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;
}