[][src]Module riscv_sandbox::elf

Helper functions for elf file reading

Functions

get_main_pc

Use this function to retrieve the address of a binary symbol in the elf.

get_plt_symbols

Use this function to retrieve the mapping of linked functions addresses to their name. Useful when emulating libc calls.

load_instructions

Use the function to load code (.text section) into a memory buffer.

load_rodata

Use this function to load .rodata section into a memory buffer.