summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/lib/libcrypto/perlasm/x86_64-xlate.pl10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/libcrypto/perlasm/x86_64-xlate.pl b/src/lib/libcrypto/perlasm/x86_64-xlate.pl
index 325e7cf583..1e54753123 100755
--- a/src/lib/libcrypto/perlasm/x86_64-xlate.pl
+++ b/src/lib/libcrypto/perlasm/x86_64-xlate.pl
@@ -567,7 +567,15 @@ my %globals;
567 $v.="$line\tSEGMENT"; 567 $v.="$line\tSEGMENT";
568 if ($line=~/\.([prx])data/) { 568 if ($line=~/\.([prx])data/) {
569 $v.=" READONLY"; 569 $v.=" READONLY";
570 $v.=" ALIGN(".($1 eq "p" ? 4 : 8).")" if ($masm>=$masmref); 570 if ($masm>=$masmref) {
571 if ($1 eq "r") {
572 $v.=" ALIGN(64)";
573 } elsif ($1 eq "p") {
574 $v.=" ALIGN(4)";
575 } else {
576 $v.=" ALIGN(8)";
577 }
578 }
571 } elsif ($line=~/\.CRT\$/i) { 579 } elsif ($line=~/\.CRT\$/i) {
572 $v.=" READONLY "; 580 $v.=" READONLY ";
573 $v.=$masm>=$masmref ? "ALIGN(8)" : "DWORD"; 581 $v.=$masm>=$masmref ? "ALIGN(8)" : "DWORD";