Remove linuxkm-pie dependency for FIPS linuxkm

This commit is contained in:
Lealem Amedie
2025-03-21 15:36:31 -06:00
parent 9a3ea6fd73
commit 2fdac57a69
4 changed files with 8 additions and 9 deletions

View File

@ -659,9 +659,6 @@ AC_ARG_ENABLE([linuxkm-pie],
if test "$ENABLED_LINUXKM_PIE" = "yes"
then
AM_CFLAGS="$AM_CFLAGS -DHAVE_LINUXKM_PIE_SUPPORT"
elif test "$ENABLED_FIPS" = yes && test "$ENABLED_LINUXKM" = yes
then
AC_MSG_ERROR([FIPS linuxkm requires linuxkm-pie.])
fi
AC_SUBST([ENABLED_LINUXKM_PIE])

View File

@ -497,10 +497,6 @@
#error "compiling -fPIE requires PIE redirect table."
#endif
#if defined(HAVE_FIPS) && !defined(HAVE_LINUXKM_PIE_SUPPORT)
#error "FIPS build requires PIE support."
#endif
#ifdef USE_WOLFSSL_LINUXKM_PIE_REDIRECT_TABLE
#ifdef CONFIG_MIPS

View File

@ -48,6 +48,8 @@
#ifndef NO_CRYPT_TEST
#include <wolfcrypt/test/test.h>
#endif
#include <wolfssl/wolfcrypt/random.h>
#include <wolfssl/wolfcrypt/sha256.h>
static int libwolfssl_cleanup(void) {
int ret;

View File

@ -3617,8 +3617,12 @@ extern void uITRON4_free(void *p) ;
#undef WOLFSSL_HAVE_MAX
#undef WOLFSSL_HAVE_ASSERT_H
#define WOLFSSL_NO_ASSERT_H
#define SIZEOF_LONG 8
#define SIZEOF_LONG_LONG 8
#ifndef SIZEOF_LONG
#define SIZEOF_LONG 8
#endif
#ifndef SIZEOF_LONG_LONG
#define SIZEOF_LONG_LONG 8
#endif
#define CHAR_BIT 8
#ifndef WOLFSSL_SP_DIV_64
#define WOLFSSL_SP_DIV_64