* elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning

message for dangerous relocs, special case the common user error.
This commit is contained in:
DJ Delorie 2007-01-31 06:11:48 +00:00
parent 9d46b7956a
commit c9b57b7eb8
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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.
2007-01-30 H.J. Lu <hongjiu.lu@intel.com>
* elf.c (copy_elf_program_header): Start from the first section

View File

@ -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: