diff options
author | DJ Delorie <dj@redhat.com> | 2007-01-31 06:11:48 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2007-01-31 06:11:48 +0000 |
commit | c9b57b7eb84ac2bf9020ad0cf9d9b65416e6b112 (patch) | |
tree | 8d5c3cf02815893ac46295058a60f725cc056f65 /bfd/elf-m10300.c | |
parent | 9d46b7956a0d897116343810837445d40b9d8f48 (diff) | |
download | gdb-c9b57b7eb84ac2bf9020ad0cf9d9b65416e6b112.zip gdb-c9b57b7eb84ac2bf9020ad0cf9d9b65416e6b112.tar.gz gdb-c9b57b7eb84ac2bf9020ad0cf9d9b65416e6b112.tar.bz2 |
* elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning
message for dangerous relocs, special case the common user error.
Diffstat (limited to 'bfd/elf-m10300.c')
-rw-r--r-- | bfd/elf-m10300.c | 7 |
1 files changed, 6 insertions, 1 deletions
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: |