Rizin
unix-like reverse engineering framework and cli tools
bin_ldr.c File Reference
#include <rz_bin.h>

Go to the source code of this file.

Functions

RZ_API bool rz_bin_loader (RzBin *bin, ut32 boid, int options)
 
RZ_API bool rz_bin_loader_library (RzBin *bin, const char *name, int options)
 
RZ_API bool rz_bin_loader_option (RzBin *bin, const char *key, const char *data)
 
RZ_API bool rz_bin_loader_unload (RzBin *bin)
 

Function Documentation

◆ rz_bin_loader()

RZ_API bool rz_bin_loader ( RzBin bin,
ut32  boid,
int  options 
)

Definition at line 6 of file bin_ldr.c.

6  {
7  // uses a plugin from bin.loader eval var and loads the selected binobj
8  // options must be used to specify if we want to load the libraries of the libraries recursively
9  // or resolve the PLT from the binary or not
10  // this requires io.cache
11  return false;
12 }

◆ rz_bin_loader_library()

RZ_API bool rz_bin_loader_library ( RzBin bin,
const char *  name,
int  options 
)

Definition at line 14 of file bin_ldr.c.

14  {
15  // options specify if we want to resolve the symbols and fill the PLT
16  // this is obviously a problem if we have multiple libs that depend
17  // on symbols recursively, and that's where the LD_BIND_NOW option comes to the action
18  // the plt must be modified by using io.cache writes
19  return false;
20 }

◆ rz_bin_loader_option()

RZ_API bool rz_bin_loader_option ( RzBin bin,
const char *  key,
const char *  data 
)

Definition at line 22 of file bin_ldr.c.

22  {
23  // key value storage to specify LD_LIBRARY_PATH LD_BIND_NOW and other useful options
24  // RzCore or rizin can set those vars from the environment if desired
25  return false;
26 }

◆ rz_bin_loader_unload()

RZ_API bool rz_bin_loader_unload ( RzBin bin)

Definition at line 28 of file bin_ldr.c.

28  {
29  // unload all libraries and drop PLT changes
30  return false;
31 }