This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
mn10300: clarify a diagnostic
- From: DJ Delorie <dj at redhat dot com>
- To: binutils at sourceware dot org
- Cc: Eric Christopher <echristo at apple dot com>, Alexandre Oliva <aoliva at redhat dot com>
- Date: Mon, 16 Oct 2006 22:18:20 -0400
- Subject: mn10300: clarify a diagnostic
We only flag bfd_reloc_dangerous in one situation, yet the message for
that error is void of meaning. I propose we emit something more
useful...
* elf-m10300 (mn10300_elf_relocate_section): Make diagnostic
more specific.
Index: elf-m10300.c
===================================================================
RCS file: /cvs/cvsfiles/gnupro/bfd/elf-m10300.c,v
retrieving revision 1.12.8.1.4.16
diff -p -U3 -r1.12.8.1.4.16 elf-m10300.c
--- elf-m10300.c 14 Feb 2006 22:20:08 -0000 1.12.8.1.4.16
+++ elf-m10300.c 17 Oct 2006 02:14:23 -0000
@@ -2143,7 +2143,7 @@ mn10300_elf_relocate_section (output_bfd
goto common_error;
case bfd_reloc_dangerous:
- msg = _("internal error: dangerous error");
+ msg = _("warning: non-PIC relocation seen during shared library link");
goto common_error;
default: