X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fperlasm%2Fx86_64-xlate.pl;h=25f8c4e83fab3d31ac60b8d1304c79a6b97cedd1;hp=c09c3216add8c9f12d7a5b788d0893e88a3faf5c;hb=10232bdc0e28b5417051942fe57fa14d17e104a6;hpb=55ff3aff8c3b5474bdd4484b75a181ba07556cb1 diff --git a/crypto/perlasm/x86_64-xlate.pl b/crypto/perlasm/x86_64-xlate.pl index c09c3216ad..25f8c4e83f 100755 --- a/crypto/perlasm/x86_64-xlate.pl +++ b/crypto/perlasm/x86_64-xlate.pl @@ -241,8 +241,9 @@ my %globals; if ($gas) { # Solaris /usr/ccs/bin/as can't handle multiplications - # in $self->{label} - $self->{label} =~ s/(?{label}, new gas requires sign extension... + use integer; + $self->{label} =~ s/(?>32/egi; $self->{label} =~ s/([0-9]+\s*[\*\/\%]\s*[0-9]+)/eval($1)/eg; $self->{label} =~ s/^___imp_/__imp__/ if ($flavour eq "mingw64");