Functions
dummy_misc.cpp File Reference

Go to the source code of this file.

Functions

int64_t return_success ()
 
void * operator new (size_t size)
 
void operator delete (void *ptr) throw ()
 
int64_t sym_that_returns_failure (int64_t val)
 
int64_t sym_that_returns_success (int64_t val)
 
int64_t register_eh_frame (void *addr, uint64_t size)
 
void __cxa_end_catch (void)
 
void __cxa_begin_catch (void)
 
void __gxx_personality_v0 (void)
 
int atexit (void(*function)(void))
 
int64_t local_init (struct section_info_t *info)
 
int64_t local_fini (struct section_info_t *info)
 

Function Documentation

◆ return_success()

int64_t return_success ( )

Definition at line 27 of file dummy_misc.cpp.

◆ operator new()

void* operator new ( size_t  size)

Definition at line 31 of file dummy_misc.cpp.

◆ operator delete()

void operator delete ( void *  ptr)
throw (
)

Definition at line 40 of file dummy_misc.cpp.

◆ sym_that_returns_failure()

int64_t sym_that_returns_failure ( int64_t  val)

Definition at line 46 of file dummy_misc.cpp.

◆ sym_that_returns_success()

int64_t sym_that_returns_success ( int64_t  val)

Definition at line 54 of file dummy_misc.cpp.

◆ register_eh_frame()

int64_t register_eh_frame ( void *  addr,
uint64_t  size 
)
noexcept

Register EH Framework

Registers an ".eh_frame" section, containing it's start address, and size. This will add the eh_frame section to a global list that can be retreived using get_eh_frame_list

Precondition
expects: addr != nullptr
expects: size != 0
Postcondition
ensures: none
Parameters
addrthe address of the eh_frame section
sizethe size of the eh_frame section
Returns
REGISTER_EH_FRAME_SUCCESS on success, REGISTER_EH_FRAME_FAILURE on failure

Definition at line 62 of file dummy_misc.cpp.

◆ __cxa_end_catch()

void __cxa_end_catch ( void  )

Definition at line 71 of file dummy_misc.cpp.

◆ __cxa_begin_catch()

void __cxa_begin_catch ( void  )

Definition at line 75 of file dummy_misc.cpp.

◆ __gxx_personality_v0()

void __gxx_personality_v0 ( void  )

Definition at line 79 of file dummy_misc.cpp.

◆ atexit()

int atexit ( void(*)(void)  function)

Definition at line 83 of file dummy_misc.cpp.

◆ 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.