From d5295edbd18c5eb1e152f08081fa545ce0e9ac6d Mon Sep 17 00:00:00 2001 From: John Safranek Date: Mon, 21 Dec 2015 11:01:09 -0800 Subject: [PATCH] add the Windows object ordering tags to wolfCrypt first and last sources --- ctaocrypt/src/wolfcrypt_first.c | 6 ++++++ ctaocrypt/src/wolfcrypt_last.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/ctaocrypt/src/wolfcrypt_first.c b/ctaocrypt/src/wolfcrypt_first.c index c694aa045..00e474457 100644 --- a/ctaocrypt/src/wolfcrypt_first.c +++ b/ctaocrypt/src/wolfcrypt_first.c @@ -30,6 +30,12 @@ #ifdef HAVE_FIPS +#ifdef USE_WINDOWS_API + #pragma code_seg(".fipsA$a") + #pragma const_seg(".fipsB$a") +#endif + + /* read only start address */ const unsigned int wolfCrypt_FIPS_ro_start[] = { 0x1a2b3c4d, 0x00000001 }; diff --git a/ctaocrypt/src/wolfcrypt_last.c b/ctaocrypt/src/wolfcrypt_last.c index cdcd741a1..284eb110e 100644 --- a/ctaocrypt/src/wolfcrypt_last.c +++ b/ctaocrypt/src/wolfcrypt_last.c @@ -30,6 +30,12 @@ #ifdef HAVE_FIPS +#ifdef USE_WINDOWS_API + #pragma code_seg(".fipsA$l") + #pragma const_seg(".fipsB$l") +#endif + + /* last function of text/code segment */ int wolfCrypt_FIPS_last(void); int wolfCrypt_FIPS_last(void)