* alpha-dis.c: Fix formatting.
[deliverable/binutils-gdb.git] / bfd / peicode.h
index a0f74497df21f340ffd9e465710c4a83076178d9..20fe01cba65ac916296efae6d95c5e2a30819ec4 100644 (file)
@@ -275,7 +275,8 @@ coff_swap_scnhdr_in (abfd, ext, in)
 #ifndef COFF_NO_HACK_SCNHDR_SIZE
   /* If this section holds uninitialized data, use the virtual size
      (stored in s_paddr) instead of the physical size.  */
-  if ((scnhdr_int->s_flags & IMAGE_SCN_CNT_UNINITIALIZED_DATA) != 0)
+  if ((scnhdr_int->s_flags & IMAGE_SCN_CNT_UNINITIALIZED_DATA) != 0
+      && (scnhdr_int->s_paddr > 0))
     {
       scnhdr_int->s_size = scnhdr_int->s_paddr;
       /* This code used to set scnhdr_int->s_paddr to 0.  However,
This page took 0.023411 seconds and 4 git commands to generate.