Proper solution to nasm compilation problems in Borland context.
This commit is contained in:
parent
5824f6bc06
commit
cb59297438
@ -263,7 +263,16 @@ sub using486
|
|||||||
sub main'file
|
sub main'file
|
||||||
{
|
{
|
||||||
if ($main'mwerks) { push(@out,".section\t.text\n"); }
|
if ($main'mwerks) { push(@out,".section\t.text\n"); }
|
||||||
else { push(@out,"section\t.text use32\n"); }
|
else {
|
||||||
|
local $tmp=<<___;
|
||||||
|
%ifdef __omf__
|
||||||
|
section code use32 class=code
|
||||||
|
%else
|
||||||
|
section .text
|
||||||
|
%endif
|
||||||
|
___
|
||||||
|
push(@out,$tmp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sub main'function_begin
|
sub main'function_begin
|
||||||
|
@ -51,7 +51,7 @@ $lfile='';
|
|||||||
$shlib_ex_obj="";
|
$shlib_ex_obj="";
|
||||||
$app_ex_obj="c0x32.obj";
|
$app_ex_obj="c0x32.obj";
|
||||||
|
|
||||||
$asm='nasmw -f obj';
|
$asm='nasmw -f obj -d__omf__';
|
||||||
$asm.=" /Zi" if $debug;
|
$asm.=" /Zi" if $debug;
|
||||||
$afile='-o';
|
$afile='-o';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user