Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | rz_bflt_hdr_t |
struct | rz_bflt_reloc_t |
struct | rz_bflt_obj_t |
Macros | |
#define | FLAT_VERSION 0x00000004L |
#define | FLAT_FLAG_RAM 0x1 /* load program entirely into RAM */ |
#define | FLAT_FLAG_GOTPIC 0x2 /* program is PIC with GOT */ |
#define | FLAT_FLAG_GZIP 0x4 /* all but the header is compressed */ |
#define | FLAT_FLAG_GZDATA 0x8 /* only data/relocs are compressed (for XIP) */ |
#define | FLAT_FLAG_KTRACE 0x10 /* output useful kernel trace for debugging */ |
#define | BFLT_HDR_SIZE sizeof(RzBfltHdr) |
Typedefs | |
typedef struct rz_bflt_hdr_t | RzBfltHdr |
typedef struct rz_bflt_reloc_t | RzBfltReloc |
typedef struct rz_bflt_obj_t | RzBfltObj |
Functions | |
RzBfltObj * | rz_bflt_new_buf (RzBuffer *buf, ut64 baddr, bool big_endian, bool patch_relocs) |
void | rz_bflt_free (RzBfltObj *obj) |
RzBinAddr * | rz_bflt_get_entry (RzBfltObj *bin) |
ut64 | rz_bflt_get_text_base (RzBfltObj *bin) |
Address to map text segment to. More... | |
ut64 | rz_bflt_get_data_base (RzBfltObj *bin) |
Address to map data+bss segment to. More... | |
ut64 | rz_bflt_get_data_vsize (RzBfltObj *bin) |
Total size of data+bss. More... | |
ut64 | rz_bflt_paddr_to_vaddr (RzBfltObj *bin, ut32 paddr) |
#define FLAT_FLAG_GZDATA 0x8 /* only data/relocs are compressed (for XIP) */ |
#define FLAT_FLAG_GZIP 0x4 /* all but the header is compressed */ |
#define FLAT_FLAG_KTRACE 0x10 /* output useful kernel trace for debugging */ |
#define FLAT_FLAG_RAM 0x1 /* load program entirely into RAM */ |
typedef struct rz_bflt_hdr_t RzBfltHdr |
typedef struct rz_bflt_obj_t RzBfltObj |
typedef struct rz_bflt_reloc_t RzBfltReloc |
void rz_bflt_free | ( | RzBfltObj * | obj | ) |
Definition at line 173 of file bflt.c.
References rz_bflt_obj_t::b, rz_bflt_obj_t::buf_patched, rz_bflt_obj_t::got_relocs, rz_bflt_obj_t::relocs, rz_buf_free(), RZ_FREE, and rz_vector_fini().
Referenced by destroy(), and rz_bflt_new_buf().
Address to map data+bss segment to.
Definition at line 198 of file bflt.c.
References FLAT_DATA_ALIGN, MAX_SHARED_LIBS, r, rz_num_align_delta(), and ut64().
Referenced by maps(), rz_bflt_paddr_to_vaddr(), and sections().
Definition at line 183 of file bflt.c.
References addr, rz_bflt_get_text_base(), and RZ_NEW0.
Referenced by entries().
Address to map text segment to.
Definition at line 193 of file bflt.c.
Referenced by maps(), rz_bflt_get_entry(), and sections().
Definition at line 164 of file bflt.c.
References baddr(), NULL, patch_relocs(), rz_bflt_free(), rz_bflt_init(), and RZ_NEW0.
Referenced by load_buffer().
Definition at line 208 of file bflt.c.
References rz_bflt_get_data_base().
Referenced by convert_relocs(), and patch_relocs_in().