Padlock engine: make it independent of inline assembler.
[openssl.git] / crypto / perlasm / x86nasm.pl
index 23a84ba56355ce0559f93f288fefabfabe6ca94f..ca2511c9eb916538618151fee8c514fbccb704de 100644 (file)
@@ -167,4 +167,11 @@ sub ::dataseg
     else               { push(@out,"section\t.data align=4\n"); }
 }
 
     else               { push(@out,"section\t.data align=4\n"); }
 }
 
+sub ::safeseh
+{ my $nm=shift;
+    push(@out,"%if     __NASM_VERSION_ID__ >= 0x02030000\n");
+    push(@out,"safeseh ".&::LABEL($nm,$nmdecor.$nm)."\n");
+    push(@out,"%endif\n");
+}
+
 1;
 1;