提交 23dcb447 编写于 作者: A Andy Polyakov

x86nasm.pl update: use pre-defined macros and allow for /safeseh link.

上级 39c63e16
......@@ -4,7 +4,7 @@ package x86nasm;
*out=\@::out;
$::lbdecor="\@L"; # local label decoration
$::lbdecor="L\$"; # local label decoration
$nmdecor=$::netware?"":"_"; # external name decoration
$drdecor=$::mwerks?".":""; # directive decoration
......@@ -75,12 +75,13 @@ sub ::file
{ if ($::mwerks) { push(@out,".section\t.text,64\n"); }
else
{ my $tmp=<<___;
%ifdef __omf__
%ifidn __OUTPUT_FORMAT__,obj
section code use32 class=code align=64
%elifdef __coff__
section .text code
%else
%elifidn __OUTPUT_FORMAT__,win32
\$\@feat.00 equ 1
section .text code align=64
%else
section .text code
%endif
___
push(@out,$tmp);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册