From 8c6716e57eb991ba6ceb07011045d626652aaf01 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 5 Oct 2017 11:06:44 +1030 Subject: [PATCH] bfd_error_on_input is for archives * elflink.c (elf_link_input_bfd): Correct ctor/dtor in init_array/ fini_array error value. --- bfd/ChangeLog | 5 +++++ bfd/elflink.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 9b377f56780..c221cdb48b5 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2017-10-05 Alan Modra + + * elflink.c (elf_link_input_bfd): Correct ctor/dtor in init_array/ + fini_array error value. + 2017-10-05 Alan Modra PR 21167 diff --git a/bfd/elflink.c b/bfd/elflink.c index 982bf4f04ff..1a990582cbd 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -10444,7 +10444,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; -- 2.30.2