sync with OpenBSD -current

This commit is contained in:
purplerain 2024-02-28 00:34:12 +00:00
parent 729656abba
commit 8d80bb2dde
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
22 changed files with 190 additions and 104 deletions

View file

@ -567,7 +567,15 @@ my %globals;
$v.="$line\tSEGMENT";
if ($line=~/\.([prx])data/) {
$v.=" READONLY";
$v.=" ALIGN(".($1 eq "p" ? 4 : 8).")" if ($masm>=$masmref);
if ($masm>=$masmref) {
if ($1 eq "r") {
$v.=" ALIGN(64)";
} elsif ($1 eq "p") {
$v.=" ALIGN(4)";
} else {
$v.=" ALIGN(8)";
}
}
} elsif ($line=~/\.CRT\$/i) {
$v.=" READONLY ";
$v.=$masm>=$masmref ? "ALIGN(8)" : "DWORD";