summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2008-01-21 03:53:07 +0000
committerAlan Modra <amodra@bigpond.net.au>2008-01-21 03:53:07 +0000
commit4793cc40530082a53b95503ba7725a6660c20e78 (patch)
tree0ec145a4aa3bf07b343c31245f1cfa767d2c1a28
parent0fb6efe681b8499aa0b809724422404be7276e4c (diff)
downloadbinutils-redhat-4793cc40530082a53b95503ba7725a6660c20e78.tar.gz
* elflink.c (_bfd_elf_link_output_relocs): Correct error return.
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elflink.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 59f8347dd5..62d485b92c 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,9 @@
2008-01-21 Alan Modra <amodra@bigpond.net.au>
+ * elflink.c (_bfd_elf_link_output_relocs): Correct error return.
+
+2008-01-21 Alan Modra <amodra@bigpond.net.au>
+
* ecoff.c (_bfd_ecoff_archive_p): Delete.
* libecoff.h (_bfd_ecoff_archive_p): Delete.
* coff-alpha.c (ecoffalpha_little_vec): Use bfd_generic_archive_p.
diff --git a/bfd/elflink.c b/bfd/elflink.c
index ed691818c6..c658b140d7 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -2321,7 +2321,7 @@ _bfd_elf_link_output_relocs (bfd *output_bfd,
(*_bfd_error_handler)
(_("%B: relocation size mismatch in %B section %A"),
output_bfd, input_section->owner, input_section);
- bfd_set_error (bfd_error_wrong_object_format);
+ bfd_set_error (bfd_error_wrong_format);
return FALSE;
}