/* radare - LGPL - Copyright 2014 Fedor Sakharov */ #ifndef COFF_H #define COFF_H #include #include #include #include #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; }; bool 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 */