mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-30 01:44:50 +00:00
db1bb1a089
RCoreFile, where RBinFile contains meta information for RBinObjects. Now RBinFiles are swapped out along with the RCoreFile when the priority is changed.
22 lines
490 B
C
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
|
|
|