x86_64-xlate.pl: fix LNK4078 and LNK4210 link warnings [from HEAD].
PR: 2356
This commit is contained in:
parent
3fa29765fd
commit
7202a4d42b
1 changed files with 5 additions and 1 deletions
|
@ -167,7 +167,7 @@ my %globals;
|
||||||
} elsif ($self->{op} =~ /^(pop|push)f/) {
|
} elsif ($self->{op} =~ /^(pop|push)f/) {
|
||||||
$self->{op} .= $self->{sz};
|
$self->{op} .= $self->{sz};
|
||||||
} elsif ($self->{op} eq "call" && $current_segment eq ".CRT\$XCU") {
|
} elsif ($self->{op} eq "call" && $current_segment eq ".CRT\$XCU") {
|
||||||
$self->{op} = "ALIGN\t8\n\tDQ";
|
$self->{op} = "\tDQ";
|
||||||
}
|
}
|
||||||
$self->{op};
|
$self->{op};
|
||||||
}
|
}
|
||||||
|
@ -545,6 +545,8 @@ my %globals;
|
||||||
if ($line=~/\.([px])data/) {
|
if ($line=~/\.([px])data/) {
|
||||||
$v.=" rdata align=";
|
$v.=" rdata align=";
|
||||||
$v.=$1 eq "p"? 4 : 8;
|
$v.=$1 eq "p"? 4 : 8;
|
||||||
|
} elsif ($line=~/\.CRT\$/i) {
|
||||||
|
$v.=" rdata align=8";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$v="$current_segment\tENDS\n" if ($current_segment);
|
$v="$current_segment\tENDS\n" if ($current_segment);
|
||||||
|
@ -552,6 +554,8 @@ my %globals;
|
||||||
if ($line=~/\.([px])data/) {
|
if ($line=~/\.([px])data/) {
|
||||||
$v.=" READONLY";
|
$v.=" READONLY";
|
||||||
$v.=" ALIGN(".($1 eq "p" ? 4 : 8).")" if ($masm>=$masmref);
|
$v.=" ALIGN(".($1 eq "p" ? 4 : 8).")" if ($masm>=$masmref);
|
||||||
|
} elsif ($line=~/\.CRT\$/i) {
|
||||||
|
$v.=" READONLY DWORD";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$current_segment = $line;
|
$current_segment = $line;
|
||||||
|
|
Loading…
Reference in a new issue