Typedefs | Functions
test_crt.cpp File Reference

Go to the source code of this file.

Typedefs

typedef void(* init_t) ()
 
typedef void(* fini_t) ()
 

Functions

int64_t register_eh_frame (void *addr, uint64_t size) noexcept
 
void func1 ()
 
void func2 ()
 

Typedef Documentation

◆ init_t

typedef void(* init_t) ()

Definition at line 27 of file test_crt.cpp.

◆ fini_t

typedef void(* fini_t) ()

Definition at line 28 of file test_crt.cpp.

Function Documentation

◆ 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 31 of file test_crt.cpp.

◆ func1()

void func1 ( )

Definition at line 40 of file test_crt.cpp.

◆ func2()

void func2 ( )

Definition at line 44 of file test_crt.cpp.