Module Name: src
Committed By: matt
Date: Thu Mar 6 09:33:14 UTC 2014
Modified Files:
src/external/gpl3/binutils/dist/bfd: elf64-ppc.c
Log Message:
If marking a shared image TEXTREL, print out a warning about the section
that caused it.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/binutils/dist/bfd/elf64-ppc.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/elf64-ppc.c
diff -u src/external/gpl3/binutils/dist/bfd/elf64-ppc.c:1.4 src/external/gpl3/binutils/dist/bfd/elf64-ppc.c:1.5
--- src/external/gpl3/binutils/dist/bfd/elf64-ppc.c:1.4 Sun Sep 29 14:03:29 2013
+++ src/external/gpl3/binutils/dist/bfd/elf64-ppc.c Thu Mar 6 09:33:14 2014
@@ -9196,7 +9196,13 @@ ppc64_elf_size_dynamic_sections (bfd *ou
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;
+ }
}
}
}