This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: mn10300: clarify a diagnostic
> Nope. The one from my previous mail was one, but I can't think of a user
> generated way to do it.
In it goes, then. Patch as applied:
2007-01-31 DJ Delorie <dj@redhat.com>
* elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning
message for dangerous relocs, special case the common user error.
Index: elf-m10300.c
===================================================================
RCS file: /cvs/src/src/bfd/elf-m10300.c,v
retrieving revision 1.77
diff -p -U3 -r1.77 elf-m10300.c
--- elf-m10300.c 17 Oct 2006 13:41:46 -0000 1.77
+++ elf-m10300.c 31 Jan 2007 06:11:26 -0000
@@ -1499,7 +1499,12 @@ mn10300_elf_relocate_section (output_bfd
goto common_error;
case bfd_reloc_dangerous:
- msg = _("internal error: dangerous error");
+ if (r_type == R_MN10300_PCREL32)
+ msg = _("error: inappropriate relocation type for shared"
+ " library (did you forget -fpic?)");
+ else
+ msg = _("internal error: suspicious relocation type used"
+ " in shared library");
goto common_error;
default: