projects
/
platform
/
upstream
/
nasm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c8c258
)
coff: Allow alignment greater then 64 bytes on win
author
Cyrill Gorcunov
<gorcunov@gmail.com>
Thu, 22 Apr 2010 11:17:35 +0000
(15:17 +0400)
committer
Cyrill 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
patch
|
blob
|
history
diff --git
a/output/outcoff.c
b/output/outcoff.c
index
cb64679
..
84a1c73
100644
(file)
--- a/
output/outcoff.c
+++ b/
output/outcoff.c
@@
-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);