This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb/binutils-2_29-branch] bfd_error_on_input is for archives


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=018b356220faf0f6b17745dba18d2f7be33bd971

commit 018b356220faf0f6b17745dba18d2f7be33bd971
Author: Alan Modra <amodra@gmail.com>
Date:   Thu Oct 5 11:06:44 2017 +1030

    bfd_error_on_input is for archives
    
    	* elflink.c (elf_link_input_bfd): Correct ctor/dtor in init_array/
    	fini_array error value.
    
    (cherry picked from commit 8c6716e57eb991ba6ceb07011045d626652aaf01)

Diff:
---
 bfd/ChangeLog | 5 +++++
 bfd/elflink.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 65c9bab..cd0a8f2 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2017-10-05  Alan Modra  <amodra@gmail.com>
+
+	* elflink.c (elf_link_input_bfd): Correct ctor/dtor in init_array/
+	fini_array error value.
+
 2017-10-04  Pavel I. Kryukov <kryukov@frtk.ru>
 
 	PR 22245
diff --git a/bfd/elflink.c b/bfd/elflink.c
index ee3cc6b..39d878c 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -10439,7 +10439,7 @@ elf_link_input_bfd (struct elf_final_link_info *flinfo, bfd *input_bfd)
 		    (_("error: %B: size of section %A is not "
 		       "multiple of address size"),
 		     input_bfd, o);
-		  bfd_set_error (bfd_error_on_input);
+		  bfd_set_error (bfd_error_bad_value);
 		  return FALSE;
 		}
 	      o->flags |= SEC_ELF_REVERSE_COPY;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]