rizin/libr/bin/p/bin_write_pe.c
2017-10-31 17:24:53 +01:00

20 lines
464 B
C

/* radare - LGPL - Copyright 2009-2017 - pancake, nibble */
#include <r_types.h>
#include <r_bin.h>
#include "pe/pe.h"
static bool scn_perms(RBinFile *bf, const char *name, int perms) {
struct PE_(r_bin_pe_obj_t) *obj = bf->o->bin_obj;
bool ret = PE_(r_bin_pe_section_perms) (bf->o->bin_obj, name, perms);
r_buf_free (bf->buf);
bf->buf = obj->b;
obj->b = NULL;
return ret;
}
#if !R_BIN_PE64
RBinWrite r_bin_write_pe = {
.scn_perms = &scn_perms
};
#endif