coff: Allow alignment greater then 64 bytes on win
authorCyrill Gorcunov <gorcunov@gmail.com>
Thu, 22 Apr 2010 11:17:35 +0000 (15:17 +0400)
committerCyrill Gorcunov <gorcunov@gmail.com>
Thu, 22 Apr 2010 15:06:03 +0000 (19:06 +0400)
On win32/64 we have no 64 bytes limit so hit it on
"coff" target only.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
output/outcoff.c

index cb64679..84a1c73 100644 (file)
@@ -1035,7 +1035,11 @@ static void coff_sectalign(int32_t seg, unsigned int value)
         }
     }
 
-    if (!s || !is_power2(value) || value > 64)
+    if (!s || !is_power2(value))
+        return;
+
+    /* DOS has limitation on 64 bytes */
+    if (!(win32 | win64) && value > 64)
         return;
 
     align = (s->flags & 0x00F00000L);