20 lines
464 B
C
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
|