summaryrefslogtreecommitdiff
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
parent9d46b7956a0d897116343810837445d40b9d8f48 (diff)
downloadbinutils-gdb-c9b57b7eb84ac2bf9020ad0cf9d9b65416e6b112.tar.gz
* elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning
message for dangerous relocs, special case the common user error.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf-m10300.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index f8dcc99f51d..44bc9e07c2e 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
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: