Ensure bn_cmp_words can handle the case where n == 0
[openssl.git] / ms / uplink-x86.pl
index 53b998d2708a9b19b67a09f5a4323ce6b7c4c534..e79cff72d1037615e211508dc56bf2f297eeeec8 100755 (executable)
@@ -1,4 +1,10 @@
-#!/usr/bin/env perl
+#! /usr/bin/env perl
+# Copyright 2008-2018 The OpenSSL Project Authors. All Rights Reserved.
+#
+# Licensed under the OpenSSL license (the "License").  You may not use
+# this file except in compliance with the License.  You can obtain a copy
+# in the file LICENSE in the source distribution or at
+# https://www.openssl.org/source/license.html
 
 $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
 push(@INC, "${dir}.", "${dir}../crypto/perlasm");
@@ -6,7 +12,10 @@ require "x86asm.pl";
 
 require "uplink-common.pl";
 
-&asm_init($ARGV[0],"uplink-x86");
+$output = pop;
+open STDOUT,">$output";
+
+&asm_init($ARGV[0]);
 
 &external_label("OPENSSL_Uplink");
 &public_label("OPENSSL_UplinkTable");
@@ -31,3 +40,5 @@ for ($i=1;$i<=$N;$i++) {
 &data_word(&label("_\$lazy${i}"));
 }
 &asm_finish();
+
+close STDOUT;