mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-14 16:59:08 +00:00
Build fixes for TE plugin
This commit is contained in:
parent
5a895cf2b1
commit
8fd68f1429
@ -343,7 +343,7 @@ struct r_bin_te_export_t* r_bin_te_get_exports(struct r_bin_te_obj_t* bin) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
struct r_bin_te_import_t* r_bin_pe_get_imports(struct r_bin_te_obj_t *bin) {
|
||||
struct r_bin_te_import_t* r_bin_te_get_imports(struct r_bin_te_obj_t *bin) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -374,7 +374,7 @@ struct r_bin_te_obj_t* r_bin_te_new(const char* file) {
|
||||
return bin;
|
||||
}
|
||||
|
||||
struct r_bin_te_obj_t* r_bin_pe_new_buf(struct r_buf_t *buf) {
|
||||
struct r_bin_te_obj_t* r_bin_te_new_buf(struct r_buf_t *buf) {
|
||||
struct r_bin_te_obj_t *bin = R_NEW0 (struct r_bin_te_obj_t);
|
||||
if (!bin) return NULL;
|
||||
bin->b = buf;
|
||||
|
@ -150,10 +150,7 @@ static RBinInfo* info(RBinArch *arch) {
|
||||
if (!ret) return NULL;
|
||||
strncpy (ret->file, arch->file, R_BIN_SIZEOF_STRINGS);
|
||||
strncpy (ret->rpath, "NONE", R_BIN_SIZEOF_STRINGS);
|
||||
if ((str = r_bin_te_get_class (arch->bin_obj))) {
|
||||
strncpy (ret->bclass, str, R_BIN_SIZEOF_STRINGS);
|
||||
free (str);
|
||||
}
|
||||
strncpy (ret->bclass, "TE", R_BIN_SIZEOF_STRINGS);
|
||||
strncpy (ret->rclass, "te", R_BIN_SIZEOF_STRINGS);
|
||||
if ((str = r_bin_te_get_os (arch->bin_obj))) {
|
||||
strncpy (ret->os, str, R_BIN_SIZEOF_STRINGS);
|
||||
|
Loading…
Reference in New Issue
Block a user