From 94c64f9a1cbadd0e6f9a12811506f94cf750025c Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Fri, 1 Jul 2011 21:21:14 +0000 Subject: [PATCH] x86_64-xlate.pl: masm-specific update. --- crypto/perlasm/x86_64-xlate.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/perlasm/x86_64-xlate.pl b/crypto/perlasm/x86_64-xlate.pl index dd600be7b8..616e263d0a 100755 --- a/crypto/perlasm/x86_64-xlate.pl +++ b/crypto/perlasm/x86_64-xlate.pl @@ -274,7 +274,7 @@ my %globals; $self->{label} =~ s/\./\$/g; $self->{label} =~ s/(?{label} = "($self->{label})" if ($self->{label} =~ /[\*\+\-\/]/); - $sz="q" if ($self->{asterisk}); + $sz="q" if ($self->{asterisk} || opcode->mnemonic() eq "movq"); if (defined($self->{index})) { sprintf "%s[%s%s*%d%s]",$szmap{$sz}, @@ -630,7 +630,7 @@ my %globals; $v.="common $prefix@str[0] @str[1]"; } else { $v="$current_segment\tENDS\n" if ($current_segment); - $current_segment = ".data"; + $current_segment = "_DATA"; $v.="$current_segment\tSEGMENT\n"; $v.="COMM @str[0]:DWORD:".@str[1]/4; } -- 2.34.1