From ae8b47f07f70c9a7debf43d2cd8d7fd2c05aee51 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Fri, 12 Aug 2011 21:38:19 +0000 Subject: [PATCH] SPARC assembler pack: fix FIPS linking errors. --- crypto/bn/asm/sparcv8plus.S | 4 ++++ crypto/des/asm/des_enc.m4 | 4 ++++ crypto/sparccpuid.S | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/crypto/bn/asm/sparcv8plus.S b/crypto/bn/asm/sparcv8plus.S index 63de1860f2..b45bc24088 100644 --- a/crypto/bn/asm/sparcv8plus.S +++ b/crypto/bn/asm/sparcv8plus.S @@ -144,6 +144,10 @@ * } */ +#ifdef OPENSSL_FIPSCANISTER +#include +#endif + #if defined(__SUNPRO_C) && defined(__sparcv9) /* They've said -xarch=v9 at command line */ .register %g2,#scratch diff --git a/crypto/des/asm/des_enc.m4 b/crypto/des/asm/des_enc.m4 index 3280595478..5d323d02c5 100644 --- a/crypto/des/asm/des_enc.m4 +++ b/crypto/des/asm/des_enc.m4 @@ -46,6 +46,10 @@ .ident "des_enc.m4 2.1" .file "des_enc-sparc.S" +#ifdef OPENSSL_FIPSCANISTER +#include +#endif + #if defined(__SUNPRO_C) && defined(__sparcv9) # define ABI64 /* They've said -xarch=v9 at command line */ #elif defined(__GNUC__) && defined(__arch64__) diff --git a/crypto/sparccpuid.S b/crypto/sparccpuid.S index 329efcdd3d..ccdd31e041 100644 --- a/crypto/sparccpuid.S +++ b/crypto/sparccpuid.S @@ -1,3 +1,7 @@ +#ifdef OPENSSL_FIPSCANISTER +#include +#endif + #if defined(__SUNPRO_C) && defined(__sparcv9) # define ABI64 /* They've said -xarch=v9 at command line */ #elif defined(__GNUC__) && defined(__arch64__) -- 2.25.1