Data Structures | Typedefs | Functions
crt.h File Reference

Go to the source code of this file.

Data Structures

struct  section_info_t
 

Typedefs

typedef int64_t(* local_init_t) (struct section_info_t *info)
 
typedef int64_t(* local_fini_t) (struct section_info_t *info)
 

Functions

int64_t local_init (struct section_info_t *info)
 
int64_t local_fini (struct section_info_t *info)
 

Typedef Documentation

◆ local_init_t

typedef int64_t(* local_init_t) (struct section_info_t *info)

Local Init

Initialized a binary / module. This is very similar to _init that GCC uses on Linux.This is called by the driver entry as each module. Each module has this function as it is statically linked with each module as it is compiled by the gcc wrapper

Precondition
expects: info != nullptr
Postcondition
ensures: none
Parameters
infoa pointer to the section info structure that is used by the init funcion.

Definition at line 51 of file crt.h.

◆ local_fini_t

typedef int64_t(* local_fini_t) (struct section_info_t *info)

Local Fini

Initialized a binary / module. This is very similar to _fini that GCC uses on Linux. This is called by the driver entry as each module. Each module has this function as it is statically linked with each module as it is compiled by the gcc wrapper

Precondition
expects: info != nullptr
Postcondition
ensures: none
Parameters
infoa pointer to the section info structure that is used by the fini funcion.

Definition at line 67 of file crt.h.

Function Documentation

◆ local_init()

int64_t local_init ( struct section_info_t info)

Local Init

Initialized a binary / module. This is very similar to _init that GCC uses on Linux.This is called by the driver entry as each module. Each module has this function as it is statically linked with each module as it is compiled by the gcc wrapper

Precondition
expects: info != nullptr
Postcondition
ensures: none
Parameters
infoa pointer to the section info structure that is used by the init funcion.

Definition at line 90 of file dummy_misc.cpp.

◆ local_fini()

int64_t local_fini ( struct section_info_t info)

Local Fini

Initialized a binary / module. This is very similar to _fini that GCC uses on Linux. This is called by the driver entry as each module. Each module has this function as it is statically linked with each module as it is compiled by the gcc wrapper

Precondition
expects: info != nullptr
Postcondition
ensures: none
Parameters
infoa pointer to the section info structure that is used by the fini funcion.

Definition at line 97 of file dummy_misc.cpp.