bfd_error_on_input is for archives
authorAlan Modra <amodra@gmail.com>
Thu, 5 Oct 2017 00:36:44 +0000 (11:06 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 5 Oct 2017 00:38:20 +0000 (11:08 +1030)
* elflink.c (elf_link_input_bfd): Correct ctor/dtor in init_array/
fini_array error value.

bfd/ChangeLog
bfd/elflink.c

index 9b377f56780704c6012fabfc7b38b14815f31adb..c221cdb48b5a415a46840ade72cf8d10f1dcdea0 100644 (file)
@@ -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-05  Alan Modra  <amodra@gmail.com>
 
        PR 21167
index 982bf4f04ffc590148458c6ae6a0ed36b425a5ff..1a990582cbd41441bd4d2401095b517e8d81049e 100644 (file)
@@ -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;