If there is only section zero that shouldn't count. Then we would
still try to work on an empty set of sections and give an obscure
error later.
* src/unstrip.c (copy_elided_sections): Check stripped_shnum <= 1.
Signed-off-by: Mark Wielaard <mark@klomp.org>
error_exit (0, _("\
more sections in stripped file than debug file -- arguments reversed?"));
- if (unlikely (stripped_shnum == 0))
+ if (unlikely (stripped_shnum <= 1))
error_exit (0, _("no sections in stripped file"));
/* Used as sanity check for allocated section offset, if the section