diff options
author | Alan Modra <amodra@gmail.com> | 2017-10-05 11:06:44 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-10-05 11:08:20 +1030 |
commit | 8c6716e57eb991ba6ceb07011045d626652aaf01 (patch) | |
tree | d298da636780ec217c94703c73d9014729633105 | |
parent | e6fef60069f64ee19600e96dbb1f56f80b388bc8 (diff) | |
download | gdb-8c6716e57eb991ba6ceb07011045d626652aaf01.zip gdb-8c6716e57eb991ba6ceb07011045d626652aaf01.tar.gz gdb-8c6716e57eb991ba6ceb07011045d626652aaf01.tar.bz2 |
bfd_error_on_input is for archives
* elflink.c (elf_link_input_bfd): Correct ctor/dtor in init_array/
fini_array error value.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elflink.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 9b377f5..c221cdb 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,10 @@ 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 * elf.c (_bfd_elf_setup_sections): Don't trim reloc sections from groups. diff --git a/bfd/elflink.c b/bfd/elflink.c index 982bf4f..1a99058 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; |