mn10300: clarify a diagnostic

DJ Delorie dj@redhat.com
Tue Oct 17 11:12:00 GMT 2006


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:



More information about the Binutils mailing list