Proper solution to nasm compilation problems in Borland context.

This commit is contained in:
Andy Polyakov 2005-09-20 06:21:39 +00:00
parent f6fefec921
commit cd029eb6f0
2 changed files with 10 additions and 2 deletions

View File

@ -221,7 +221,15 @@ sub using486
sub main'file
{
push(@out, "segment .text use32\n");
local $tmp;
$tmp=<<___;
%ifdef __omf__
section code use32 class=code
%else
section .text
%endif
___
push(@out,$tmp);
}
sub main'function_begin

View File

@ -51,7 +51,7 @@ $lfile='';
$shlib_ex_obj="";
$app_ex_obj="c0x32.obj";
$asm='nasmw -f obj';
$asm='nasmw -f obj -d__omf__';
$asm.=" /Zi" if $debug;
$afile='-o';