mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-16 04:08:23 +00:00
22 lines
484 B
C
22 lines
484 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(RBinArch *arch, const char *name, ut64 size) {
|
|
return Elf_(r_bin_elf_resize_section) (arch->bin_obj, name, size);
|
|
}
|
|
|
|
static int rpath_del(RBinArch *arch) {
|
|
return Elf_(r_bin_elf_del_rpath) (arch->bin_obj);
|
|
}
|
|
|
|
#if !R_BIN_ELF64
|
|
struct r_bin_write_t r_bin_write_elf = {
|
|
.scn_resize = &scn_resize,
|
|
.rpath_del = &rpath_del,
|
|
};
|
|
#endif
|
|
|