Functions | Variables
misc_all.cpp File Reference

Go to the source code of this file.

Functions

struct eh_frame_tget_eh_frame_list () noexcept
 
int64_t register_eh_frame (void *addr, uint64_t size) noexcept
 
void __stack_chk_fail (void) noexcept
 
int ___xpg_strerror_r (int errnum, char *buf, size_t buflen)
 
void _start (void) noexcept
 

Variables

void * __dso_handle = 0
 
uintptr_t __stack_chk_guard = 0x595e9fbd94fda766
 
auto g_eh_frame_list_num = 0ULL
 
eh_frame_t g_eh_frame_list [MAX_NUM_MODULES] = {}
 

Function Documentation

◆ get_eh_frame_list()

struct eh_frame_t* get_eh_frame_list ( )
noexcept

Get EH Framework List

Precondition
expects: none
Postcondition
ensures: ret != nullptr

Returns a list of ".eh_frame" sections, containing their start address, and size. This is used by the unwind library to find stack frames. The list should have one .eh_frame section for each module that is loaded.

Returns
eh_frame list (of size MAX_NUM_MODULES)

Definition at line 39 of file misc_all.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 45 of file misc_all.cpp.

◆ __stack_chk_fail()

void __stack_chk_fail ( void  )
noexcept

Definition at line 61 of file misc_all.cpp.

◆ ___xpg_strerror_r()

int ___xpg_strerror_r ( int  errnum,
char *  buf,
size_t  buflen 
)

Definition at line 69 of file misc_all.cpp.

◆ _start()

void _start ( void  )
noexcept

Definition at line 78 of file misc_all.cpp.

Variable Documentation

◆ __dso_handle

void* __dso_handle = 0

Definition at line 32 of file misc_all.cpp.

◆ __stack_chk_guard

uintptr_t __stack_chk_guard = 0x595e9fbd94fda766

Definition at line 33 of file misc_all.cpp.

◆ g_eh_frame_list_num

auto g_eh_frame_list_num = 0ULL

Definition at line 35 of file misc_all.cpp.

◆ g_eh_frame_list

eh_frame_t g_eh_frame_list[MAX_NUM_MODULES] = {}

Definition at line 36 of file misc_all.cpp.