radare2/libr/bin/p/bin_write_elf.c
Adam Pridgen db1bb1a089 Changed the location of RBinObject, and created RBinFile to conform similarly to
RCoreFile, where RBinFile contains meta information for RBinObjects.  Now
RBinFiles are swapped out along with the RCoreFile when the priority is changed.
2014-01-20 02:44:25 +01:00

22 lines
490 B
C

/* radare - LGPL - Copyright 2009-2010 nibble<.ds@gmail.com> */
#include <r_types.h>
#include <r_bin.h>
#include "elf/elf.h"
static ut64 scn_resize(RBinFile *arch, const char *name, ut64 size) {
return Elf_(r_bin_elf_resize_section) (arch->o->bin_obj, name, size);
}
static int rpath_del(RBinFile *arch) {
return Elf_(r_bin_elf_del_rpath) (arch->o->bin_obj);
}
#if !R_BIN_ELF64
struct r_bin_write_t r_bin_write_elf = {
.scn_resize = &scn_resize,
.rpath_del = &rpath_del,
};
#endif