gas -g doesn't tolerate unpadded .bytes in code segment.
authorAndy Polyakov <appro@openssl.org>
Fri, 13 Jul 2007 21:35:56 +0000 (21:35 +0000)
committerAndy Polyakov <appro@openssl.org>
Fri, 13 Jul 2007 21:35:56 +0000 (21:35 +0000)
crypto/perlasm/ppc-xlate.pl

index c2a4621..fed56e3 100755 (executable)
@@ -66,7 +66,7 @@ my $asciz = sub {
     shift;
     my $line = join(",",@_);
     if ($line =~ /^"(.*)"$/)
-    {  ".byte  " . join(",",unpack("C*",$1),0);        }
+    {  ".byte  " . join(",",unpack("C*",$1),0) . "\n.align     2";     }
     else
     {  "";     }
 };