Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/binutils/dist/bfd If marking a shared image TE...
details: https://anonhg.NetBSD.org/src/rev/dd2358e16650
branches: trunk
changeset: 327372:dd2358e16650
user: matt <matt%NetBSD.org@localhost>
date: Thu Mar 06 09:33:14 2014 +0000
description:
If marking a shared image TEXTREL, print out a warning about the section
that caused it.
diffstat:
external/gpl3/binutils/dist/bfd/elf64-ppc.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r 08f0de0ccd19 -r dd2358e16650 external/gpl3/binutils/dist/bfd/elf64-ppc.c
--- a/external/gpl3/binutils/dist/bfd/elf64-ppc.c Thu Mar 06 09:31:19 2014 +0000
+++ b/external/gpl3/binutils/dist/bfd/elf64-ppc.c Thu Mar 06 09:33:14 2014 +0000
@@ -9196,7 +9196,13 @@
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;
+ }
}
}
}
Home |
Main Index |
Thread Index |
Old Index