From: Andy Polyakov Date: Wed, 10 Feb 2016 14:11:40 +0000 (+0100) Subject: perlasm/x86_64-xlate.pl: pass pure constants verbatim. X-Git-Tag: OpenSSL_1_1_0-pre3~76 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=fd7dc201d3b9d43972de6a0e659f7ef6421c99cc;hp=d44bb1c31ca00f4359090daa15659c0dd1a08f0d perlasm/x86_64-xlate.pl: pass pure constants verbatim. RT#3885 Reviewed-by: Rich Salz --- diff --git a/crypto/perlasm/x86_64-xlate.pl b/crypto/perlasm/x86_64-xlate.pl index 87f6956252..1f5bced8e1 100755 --- a/crypto/perlasm/x86_64-xlate.pl +++ b/crypto/perlasm/x86_64-xlate.pl @@ -198,8 +198,11 @@ my %globals; if ($gas) { # Solaris /usr/ccs/bin/as can't handle multiplications # in $self->{value} - $self->{value} =~ s/(?{value} =~ s/([0-9]+\s*[\*\/\%]\s*[0-9]+)/eval($1)/eg; + my $value = $self->{value}; + $value =~ s/(?{value} = $value; + } sprintf "\$%s",$self->{value}; } else { $self->{value} =~ s/(0b[0-1]+)/oct($1)/eig;