and engage it in most modules.
Reviewed-by: Tim Hudson <tjh@openssl.org>
#endif
.type AES_Te,%object
#endif
.type AES_Te,%object
#endif
.type _bsaes_decrypt8,%function
#endif
.type _bsaes_decrypt8,%function
#include "arm_arch.h"
.text
#include "arm_arch.h"
.text
-#if defined(__thumb2__) && !defined(__APPLE__)
.syntax unified
.thumb
#else
.syntax unified
.thumb
#else
#include "arm_arch.h"
.text
#include "arm_arch.h"
.text
-#if defined(__thumb2__) && !defined(__APPLE__)
.syntax unified
.thumb
#else
.syntax unified
.thumb
#else
#include "arm_arch.h"
.text
#include "arm_arch.h"
.text
-#if defined(__thumb2__) && !defined(__APPLE__)
.syntax unified
.thumb
#else
.syntax unified
.thumb
#else
#include "arm_arch.h"
.text
#include "arm_arch.h"
.text
-#if defined(__thumb2__) && !defined(__APPLE__)
.syntax unified
.thumb
#else
.syntax unified
.thumb
#else
};
my $type = sub {
if ($flavour =~ /linux/) { ".type\t".join(',',@_); }
};
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 {
else { ""; }
};
my $size = sub {
#include "arm_arch.h"
.text
#include "arm_arch.h"
.text
-#if defined(__thumb2__) && !defined(__APPLE__)
.syntax unified
.thumb
#else
.syntax unified
.thumb
#else
&BODY_00_15(@V); unshift(@V,pop(@V));
}
$code.=<<___;
&BODY_00_15(@V); unshift(@V,pop(@V));
}
$code.=<<___;
-#if defined(__thumb2__) && !defined(__APPLE__)
mov $t3,sp
teq $Xi,$t3
#else
mov $t3,sp
teq $Xi,$t3
#else
&BODY_20_39(@V); unshift(@V,pop(@V));
}
$code.=<<___;
&BODY_20_39(@V); unshift(@V,pop(@V));
}
$code.=<<___;
-#if defined(__thumb2__) && !defined(__APPLE__)
mov $t3,sp
teq $Xi,$t3
#else
mov $t3,sp
teq $Xi,$t3
#else
&BODY_40_59(@V); unshift(@V,pop(@V));
}
$code.=<<___;
&BODY_40_59(@V); unshift(@V,pop(@V));
}
$code.=<<___;
-#if defined(__thumb2__) && !defined(__APPLE__)
mov $t3,sp
teq $Xi,$t3
#else
mov $t3,sp
teq $Xi,$t3
#else
$code.=<<___;
#if __ARM_MAX_ARCH__>=7
$code.=<<___;
#if __ARM_MAX_ARCH__>=7
-# if defined(__thumb2__) && !defined(__APPLE__)
+# if defined(__thumb2__)
# define INST(a,b,c,d) .byte c,d|0xf,a,b
# else
# define INST(a,b,c,d) .byte a,b,c,d|0x10
# define INST(a,b,c,d) .byte c,d|0xf,a,b
# else
# define INST(a,b,c,d) .byte a,b,c,d|0x10
-#if defined(__thumb2__) && !defined(__APPLE__)
.syntax unified
.thumb
# define adrl adr
.syntax unified
.thumb
# define adrl adr
$code.=<<___;
#if __ARM_MAX_ARCH__>=7 && !defined(__KERNEL__)
$code.=<<___;
#if __ARM_MAX_ARCH__>=7 && !defined(__KERNEL__)
-# if defined(__thumb2__) && !defined(__APPLE__)
+# if defined(__thumb2__)
# define INST(a,b,c,d) .byte c,d|0xc,a,b
# else
# define INST(a,b,c,d) .byte a,b,c,d
# define INST(a,b,c,d) .byte c,d|0xc,a,b
# else
# define INST(a,b,c,d) .byte a,b,c,d
-#if defined(__thumb2__) && !defined(__APPLE__)
.syntax unified
.thumb
# define adrl adr
.syntax unified
.thumb
# define adrl adr