summaryrefslogtreecommitdiff
path: root/bfd/elf-m10300.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2007-01-31 06:11:48 +0000
committerDJ Delorie <dj@delorie.com>2007-01-31 06:11:48 +0000
commitddd9c6a1ed0bbb69fa74c56e022193db8a509697 (patch)
tree61416b965eb3539ce7c1182a53d78fc6eb7decd3 /bfd/elf-m10300.c
parent8b50902caca578b9dd2c4a47f80a2353f0417580 (diff)
downloadgdb-ddd9c6a1ed0bbb69fa74c56e022193db8a509697.tar.gz
* 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 7a729259f1d..df2d4ab2b57 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: