From: DJ Delorie Date: Wed, 31 Jan 2007 06:11:48 +0000 (+0000) Subject: * elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning X-Git-Tag: drow-reverse-20070409-branchpoint~651 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c9b57b7eb84ac2bf9020ad0cf9d9b65416e6b112;p=platform%2Fupstream%2Fbinutils.git * elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning message for dangerous relocs, special case the common user error. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f8dcc99..44bc9e0 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2007-01-31 DJ Delorie + + * elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning + message for dangerous relocs, special case the common user error. + 2007-01-30 H.J. Lu * elf.c (copy_elf_program_header): Start from the first section diff --git a/bfd/elf-m10300.c b/bfd/elf-m10300.c index 7a72925..df2d4ab 100644 --- a/bfd/elf-m10300.c +++ b/bfd/elf-m10300.c @@ -1499,7 +1499,12 @@ mn10300_elf_relocate_section (output_bfd, info, input_bfd, input_section, 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: