From 9d3cab4bdb03ed740e009503088b0d3c21072eea Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Wed, 14 Mar 2018 17:23:16 +0100 Subject: MIPS assembly pack: default heuristic detection to little-endian. Current endianness detection is somewhat opportunistic and can fail in cross-compile scenario. Since we are more likely to cross-compile for little-endian now, adjust the default accordingly. Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/5613) --- crypto/aes/asm/aes-mips.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/aes') diff --git a/crypto/aes/asm/aes-mips.pl b/crypto/aes/asm/aes-mips.pl index d81d76d77a..9334d8fbbf 100644 --- a/crypto/aes/asm/aes-mips.pl +++ b/crypto/aes/asm/aes-mips.pl @@ -88,7 +88,7 @@ $pf = ($flavour =~ /nubi/i) ? $t0 : $t2; # ###################################################################### -$big_endian=(`echo MIPSEL | $ENV{CC} -E -`=~/MIPSEL/)?1:0 if ($ENV{CC}); +$big_endian=(`echo MIPSEB | $ENV{CC} -E -`=~/MIPSEB/)?0:1 if ($ENV{CC}); for (@ARGV) { $output=$_ if (/\w[\w\-]*\.\w+$/); } open STDOUT,">$output"; -- cgit v1.2.3