############################# compiler flags ##################################
-# If supported for the target machine, emit position-independent code,suitable
-# for dynamic linking and avoiding any limit on the size of the global offset
-# table. This option makes a difference on the m68k, PowerPC and SPARC.
-ADD_DEFINITIONS("-fPIC")
+# Force PIE
+SET(CMAKE_POSITION_INDEPENDENT_CODE "True")
+SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie")
# SECOS SIM define used in the project
ADD_DEFINITIONS("-D_SECOS_SIM_")
if (result == TEE_SUCCESS) if (value == 1000) /* req ree time*/
reqSrcTee = false;
- TEE_Time nowTime;
+ TEE_Time nowTime = { 0, 0 };
if (reqSrcTee == true) {
TEE_GetSystemTime(&nowTime);
TEE_Time* retTime = _TEE_GetAdjDiffTeeTime(&reqTaTime, &teeTaTime,