aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-m10300.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2007-01-31 06:11:48 +0000
committerDJ Delorie <dj@redhat.com>2007-01-31 06:11:48 +0000
commitc9b57b7eb84ac2bf9020ad0cf9d9b65416e6b112 (patch)
tree8d5c3cf02815893ac46295058a60f725cc056f65 /bfd/elf-m10300.c
parent9d46b7956a0d897116343810837445d40b9d8f48 (diff)
downloadgdb-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.c7
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: