34 lines
848 B
C
34 lines
848 B
C
/* radare - LGPL - Copyright 2014 Fedor Sakharov <fedor.sakharov@gmail.com> */
|
|
|
|
#ifndef COFF_H
|
|
#define COFF_H
|
|
|
|
#include <r_types.h>
|
|
#include <r_util.h>
|
|
#include <r_lib.h>
|
|
#include <r_bin.h>
|
|
|
|
#include "coff_specs.h"
|
|
|
|
struct r_bin_coff_obj {
|
|
struct coff_hdr hdr;
|
|
struct coff_opt_hdr opt_hdr;
|
|
struct coff_scn_hdr *scn_hdrs;
|
|
struct coff_symbol *symbols;
|
|
|
|
ut16 target_id; /* TI COFF specific */
|
|
|
|
struct r_buf_t *b;
|
|
size_t size;
|
|
ut8 endian;
|
|
Sdb *kv;
|
|
};
|
|
|
|
int r_coff_supported_arch(const ut8 *buf); /* Reads two bytes from buf. */
|
|
struct r_bin_coff_obj* r_bin_coff_new_buf(struct r_buf_t *buf);
|
|
void r_bin_coff_free(struct r_bin_coff_obj *obj);
|
|
RBinAddr *r_coff_get_entry(struct r_bin_coff_obj *obj);
|
|
const char *r_coff_symbol_name (struct r_bin_coff_obj *obj, void *ptr);
|
|
int r_coff_is_stripped (struct r_bin_coff_obj *obj);
|
|
|
|
#endif /* COFF_H */
|