From 297d8443d0808af8481160aa1c5e20b00cc19234 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 21 Jan 2008 03:53:07 +0000 Subject: [PATCH] * elflink.c (_bfd_elf_link_output_relocs): Correct error return. --- bfd/ChangeLog | 4 ++++ bfd/elflink.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 59f8347dd58..62d485b92c7 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2008-01-21 Alan Modra + + * elflink.c (_bfd_elf_link_output_relocs): Correct error return. + 2008-01-21 Alan Modra * ecoff.c (_bfd_ecoff_archive_p): Delete. diff --git a/bfd/elflink.c b/bfd/elflink.c index ed691818c65..c658b140d7b 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; } -- 2.30.2