TA-REF
startup.c File Reference
#include <string.h>
#include "tee_ta_api.h"
#include "edger/Enclave_t.h"
#include "crt.h"
#include "tools.h"
#include "sgx_trts.h"
+ Include dependency graph for startup.c:

Functions

 __attribute__ ((weak))
 

Function Documentation

◆ __attribute__()

__attribute__ ( (weak)  )

The eapp_entry() - It contains enclave verbose and invokes the main function.

This function invokes crt_begin() if defined macro is ENCLAVE_VERBOSE then prints the main start and invokes main(). Once main() is completed, it prints the main end and invokes the crt_end().

Returns
It will return EAPP_RETURN(0).