summaryrefslogtreecommitdiffstats
path: root/crypto/perlasm/x86gas.pl
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2011-10-15 08:32:16 +0000
committerAndy Polyakov <appro@openssl.org>2011-10-15 08:32:16 +0000
commit8fcdb1e60f0dcc09dff5395de95e884d4f8610ce (patch)
treec5e23a0413a6ead732e47540bb225ff60045e9d0 /crypto/perlasm/x86gas.pl
parente1db7c4e7a4913e29ed6d4b355a4c7b643138f33 (diff)
Add android-x86.
Diffstat (limited to 'crypto/perlasm/x86gas.pl')
-rw-r--r--crypto/perlasm/x86gas.pl9
1 files changed, 8 insertions, 1 deletions
diff --git a/crypto/perlasm/x86gas.pl b/crypto/perlasm/x86gas.pl
index 3a79106298..f6b8cc9679 100644
--- a/crypto/perlasm/x86gas.pl
+++ b/crypto/perlasm/x86gas.pl
@@ -209,7 +209,14 @@ sub ::picmeup
sub ::initseg
{ my $f=$nmdecor.shift;
- if ($::elf)
+ if ($::android)
+ { $initseg.=<<___;
+.section .init_array
+.align 4
+.long $f
+___
+ }
+ elsif ($::elf)
{ $initseg.=<<___;
.section .init
call $f