Module Name: src Committed By: christos Date: Mon Sep 5 14:25:33 UTC 2016
Modified Files: src/external/gpl3/binutils/dist/bfd: elfxx-sparc.c Log Message: more errors for text relocations To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 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.9 src/external/gpl3/binutils/dist/bfd/elfxx-sparc.c:1.10 --- src/external/gpl3/binutils/dist/bfd/elfxx-sparc.c:1.9 Mon Sep 5 05:17:35 2016 +++ src/external/gpl3/binutils/dist/bfd/elfxx-sparc.c Mon Sep 5 10:25:33 2016 @@ -2616,7 +2616,13 @@ _bfd_sparc_elf_size_dynamic_sections (bf srel = htab->elf.irelplt; srel->size += p->count * SPARC_ELF_RELA_BYTES (htab); if ((p->sec->output_section->flags & SEC_READONLY) != 0) - info->flags |= DF_TEXTREL; + { + info->flags |= DF_TEXTREL; + if ((info->warn_shared_textrel && bfd_link_pic (info)) + || info->error_textrel) + info->callbacks->einfo (_("%P: %B: warning: relocation " + "in readonly section `%A'\n"), p->sec->owner, p->sec); + } } } }