2 # Copyright 2008-2018 The OpenSSL Project Authors. All Rights Reserved.
4 # Licensed under the Apache License 2.0 (the "License"). You may not use
5 # this file except in compliance with the License. You can obtain a copy
6 # in the file LICENSE in the source distribution or at
7 # https://www.openssl.org/source/license.html
9 $0 =~ m/(.*[\/\\])[^\
/\\]+$/; $dir=$1;
10 push(@INC, "${dir}.", "${dir}../crypto/perlasm");
13 require "uplink-common.pl";
15 $output = pop and open STDOUT
,">$output";
19 &external_label
("OPENSSL_Uplink");
20 &public_label
("OPENSSL_UplinkTable");
22 for ($i=1;$i<=$N;$i++) {
23 &function_begin_B
("_\$lazy${i}");
24 &lea
("eax",&DWP
(&label
("OPENSSL_UplinkTable")));
27 &call
(&label
("OPENSSL_Uplink"));
30 &jmp_ptr
(&DWP
(4*$i,"eax"));
31 &function_end_B
("_\$lazy${i}");
36 &set_label
("OPENSSL_UplinkTable");
38 for ($i=1;$i<=$N;$i++) {
39 &data_word
(&label
("_\$lazy${i}"));