summaryrefslogtreecommitdiffstats
path: root/crypto/perlasm
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2015-12-06 22:02:39 +0100
committerAndy Polyakov <appro@openssl.org>2015-12-07 12:06:06 +0100
commita285992763f3961f69a8d86bf7dfff020a08cef9 (patch)
treed5a7430b9a159f3c1bd933f87c67225e29afb686 /crypto/perlasm
parentd231a4010bfa4032dc24a74c6cd3073e252864c4 (diff)
ARMv4 assembly pack: allow Thumb2 even in iOS build,
and engage it in most modules. Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'crypto/perlasm')
-rwxr-xr-xcrypto/perlasm/arm-xlate.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/perlasm/arm-xlate.pl b/crypto/perlasm/arm-xlate.pl
index 81ceb3142c..ecd3198c44 100755
--- a/crypto/perlasm/arm-xlate.pl
+++ b/crypto/perlasm/arm-xlate.pl
@@ -66,6 +66,12 @@ my $extern = sub {
};
my $type = sub {
if ($flavour =~ /linux/) { ".type\t".join(',',@_); }
+ elsif ($flavour =~ /ios32/) { if (join(',',@_) =~ /(\w+),%function/) {
+ "#ifdef __thumb2__\n".
+ ".thumb_func $1\n".
+ "#endif";
+ }
+ }
else { ""; }
};
my $size = sub {