Merge pull request #224 from ejohnstown/windows-fips-segments

add the Windows object ordering tags to wolfCrypt first and last sources
This commit is contained in:
Chris Conlon
2015-12-22 17:08:57 -07:00
2 changed files with 12 additions and 0 deletions

View File

@@ -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 };

View File

@@ -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)