ms/uplink-x86.pl: make it work. OpenSSL_1_0_0-stable
authorAndy Polyakov <appro@openssl.org>
Tue, 9 Feb 2016 10:53:11 +0000 (11:53 +0100)
committerAndy Polyakov <appro@openssl.org>
Wed, 10 Feb 2016 11:58:15 +0000 (12:58 +0100)
Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit 740b2b9a6cf31b02916a4d18f868e8a95934c083)

ms/uplink-x86.pl

index 0dffc14fcd2ead24fc4c110b928ac17cc3c4b18f..53b998d2708a9b19b67a09f5a4323ce6b7c4c534 100755 (executable)
@@ -14,11 +14,11 @@ require "uplink-common.pl";
 for ($i=1;$i<=$N;$i++) {
 &function_begin_B("_\$lazy${i}");
        &lea    ("eax",&DWP(&label("OPENSSL_UplinkTable")));
-       &push   ("eax");
        &push   ($i);
+       &push   ("eax");
        &call   (&label("OPENSSL_Uplink"));
-       &add    ("esp",8);
        &pop    ("eax");
+       &add    ("esp",4);
        &jmp_ptr(&DWP(4*$i,"eax"));
 &function_end_B("_\$lazy${i}");
 }