From a285992763f3961f69a8d86bf7dfff020a08cef9 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sun, 6 Dec 2015 22:02:39 +0100 Subject: ARMv4 assembly pack: allow Thumb2 even in iOS build, and engage it in most modules. Reviewed-by: Tim Hudson --- crypto/perlasm/arm-xlate.pl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crypto/perlasm') 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 { -- cgit v1.2.3