diff options
author | Andy Polyakov <appro@openssl.org> | 2010-10-10 21:07:55 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2010-10-10 21:07:55 +0000 |
commit | d6522548dd0e7fce338a5b1384dc09823493a6a4 (patch) | |
tree | 8bbc4935c3429c8a7a6148ee27804cc963a02f1b /crypto | |
parent | e49af2ac380cbf8d4361be6fb548b7773e5bd810 (diff) |
x86_64-xlate.pl: fix LNK4078 and LNK4210 link warnings.
PR 2356
Diffstat (limited to 'crypto')
-rwxr-xr-x | crypto/perlasm/x86_64-xlate.pl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/perlasm/x86_64-xlate.pl b/crypto/perlasm/x86_64-xlate.pl index 5eb7883f96..3acac96f19 100755 --- a/crypto/perlasm/x86_64-xlate.pl +++ b/crypto/perlasm/x86_64-xlate.pl @@ -167,7 +167,7 @@ my %globals; } elsif ($self->{op} =~ /^(pop|push)f/) { $self->{op} .= $self->{sz}; } elsif ($self->{op} eq "call" && $current_segment eq ".CRT\$XCU") { - $self->{op} = "ALIGN\t8\n\tDQ"; + $self->{op} = "\tDQ"; } $self->{op}; } @@ -546,6 +546,8 @@ my %globals; if ($line=~/\.([px])data/) { $v.=" rdata align="; $v.=$1 eq "p"? 4 : 8; + } elsif ($line=~/\.CRT\$/i) { + $v.=" rdata align=8"; } } else { $v="$current_segment\tENDS\n" if ($current_segment); @@ -553,6 +555,8 @@ my %globals; if ($line=~/\.([px])data/) { $v.=" READONLY"; $v.=" ALIGN(".($1 eq "p" ? 4 : 8).")" if ($masm>=$masmref); + } elsif ($line=~/\.CRT\$/i) { + $v.=" READONLY DWORD"; } } $current_segment = $line; |