NB_SSL_SUPPORTED and Code Size Problem
Posted: Fri Aug 05, 2022 6:12 pm
On a MOD5270B using version 2.9.5 I have a small subroutine for extracting data from the bottom of a std::list.
The "gmtime(&D_it->time)" lines cause a problem:
If I make the project with NB_SSL_SUPPORTED (1) commented out in predef.h I get 51 errors, mostly like:
C:\nburn\lib\cryptolib.a(wc_port.o): In function `wc_InitAndAllocMutex':
C:\nburn\system\cryptolib/wolfcrypt/src/wc_port.c:613: undefined reference to `wc_InitMutex'
C:\nburn\lib\cryptolib.a(ecc.o): In function `ecc_mul2add':
C:\nburn\system\cryptolib/wolfcrypt/src/ecc.c:8987: undefined reference to `wc_LockMutex'
C:\nburn\system\cryptolib/wolfcrypt/src/ecc.c:9075: undefined reference to `wc_UnLockMutex'
C:\nburn\system\cryptolib/wolfcrypt/src/ecc.c:8984: undefined reference to `wc_InitMutex'
C:\nburn\system\cryptolib/wolfcrypt/src/ecc.c:9075: undefined reference to `wc_UnLockMutex'
C:\nburn\system\cryptolib/wolfcrypt/src/ecc.c:9075: undefined reference to `wc_UnLockMutex'
C:\nburn\system\cryptolib/wolfcrypt/src/ecc.c:9075: undefined reference to `wc_UnLockMutex'
If I enable the NB_SSL_SUPPORTED in predef.h, the code compiles to 131% of flash memory. I can get it down to 128% with optimization for size, but that is about it. The app compiles to 89% in version 2.8.6. Linker stripping is on in both cases.
Is there anything I can do to get this to compile with 2.9.5?
Code: Select all
struct GraphData{
time_t time;
std::vector <float> value;};
float Graph::GetLastValue(int index){
list<GraphData>::reverse_iterator D_it = plotData.rbegin();
lastSavedMonth = gmtime(&D_it->time)->tm_mon;
lastSavedHour = gmtime(&D_it->time)->tm_hour;
return D_it->value[index];
}
If I make the project with NB_SSL_SUPPORTED (1) commented out in predef.h I get 51 errors, mostly like:
C:\nburn\lib\cryptolib.a(wc_port.o): In function `wc_InitAndAllocMutex':
C:\nburn\system\cryptolib/wolfcrypt/src/wc_port.c:613: undefined reference to `wc_InitMutex'
C:\nburn\lib\cryptolib.a(ecc.o): In function `ecc_mul2add':
C:\nburn\system\cryptolib/wolfcrypt/src/ecc.c:8987: undefined reference to `wc_LockMutex'
C:\nburn\system\cryptolib/wolfcrypt/src/ecc.c:9075: undefined reference to `wc_UnLockMutex'
C:\nburn\system\cryptolib/wolfcrypt/src/ecc.c:8984: undefined reference to `wc_InitMutex'
C:\nburn\system\cryptolib/wolfcrypt/src/ecc.c:9075: undefined reference to `wc_UnLockMutex'
C:\nburn\system\cryptolib/wolfcrypt/src/ecc.c:9075: undefined reference to `wc_UnLockMutex'
C:\nburn\system\cryptolib/wolfcrypt/src/ecc.c:9075: undefined reference to `wc_UnLockMutex'
If I enable the NB_SSL_SUPPORTED in predef.h, the code compiles to 131% of flash memory. I can get it down to 128% with optimization for size, but that is about it. The app compiles to 89% in version 2.8.6. Linker stripping is on in both cases.
Is there anything I can do to get this to compile with 2.9.5?