coff: Allow alignment greater then 64 bytes on win

On win32/64 we have no 64 bytes limit so hit it on
"coff" target only.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2010-04-22 15:17:35 +04:00
parent 7c8c258cdd
commit 3834305507

View 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);