x86_64-xlate.pl: proper solution for RT#2620.
authorAndy Polyakov <appro@openssl.org>
Sat, 21 Jan 2012 11:34:53 +0000 (11:34 +0000)
committerAndy Polyakov <appro@openssl.org>
Sat, 21 Jan 2012 11:34:53 +0000 (11:34 +0000)
crypto/perlasm/x86_64-xlate.pl

index 1f4ce0a84e664233c00333630bf01db05ac679bb..1492e1c2e7819b918e21acc46b10d0eeb47d6e8b 100755 (executable)
@@ -569,7 +569,8 @@ my %globals;
                                            $v.=" READONLY";
                                            $v.=" ALIGN(".($1 eq "p" ? 4 : 8).")" if ($masm>=$masmref);
                                        } elsif ($line=~/\.CRT\$/i) {
-                                           $v.=" READONLY ALIGN(8)";
+                                           $v.=" READONLY ";
+                                           $v.=$masm>=$masmref ? "ALIGN(8)" : "DWORD";
                                        }
                                    }
                                    $current_segment = $line;