diff options
Diffstat (limited to 'binutils/objcopy.c')
-rw-r--r-- | binutils/objcopy.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/binutils/objcopy.c b/binutils/objcopy.c index c955e37..d02b3e0 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -1521,13 +1521,8 @@ copy_object (bfd *ibfd, bfd *obfd) } } - if (bfd_count_sections (obfd) == 0) - { - non_fatal (_("there are no sections to be copied!")); - return FALSE; - } - - if (gap_fill_set || pad_to_set) + if (bfd_count_sections (obfd) != 0 + && (gap_fill_set || pad_to_set)) { asection **set; unsigned int c, i; |