2007-04-12 H.J. Lu <hongjiu.lu@intel.com>
[deliverable/binutils-gdb.git] / binutils / objcopy.c
index c955e37bbd565368ac533d7fb539a12c48414050..d02b3e0e0b46c9eca35e65a2282c321cb992c287 100644 (file)
@@ -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;
This page took 0.024297 seconds and 4 git commands to generate.