mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-11 15:04:23 +00:00
49f977a696
- Add support for reading/removing rpath to r_bin_elf - Add r_bin_wr_rpath_del - Un-R_API r_bin_elf - Add rpathdel.c into bin/t/
23 lines
704 B
C
23 lines
704 B
C
/* radare - LGPL - Copyright 2009-2010 nibble<.ds@gmail.com> */
|
|
|
|
#include <r_types.h>
|
|
#include <r_util.h>
|
|
#include <r_bin.h>
|
|
|
|
/* XXX Implement r__bin_wr_scn_{set, del} instead */
|
|
R_API ut64 r_bin_wr_scn_resize(RBin *bin, const char *name, ut64 size) {
|
|
if (bin && bin->cur && bin->cur->write && bin->cur->write->scn_resize)
|
|
return bin->cur->write->scn_resize (bin, name, size);
|
|
return R_FALSE;
|
|
}
|
|
|
|
R_API int r_bin_wr_rpath_del(RBin *bin) {
|
|
if (bin && bin->cur && bin->cur->write && bin->cur->write->rpath_del)
|
|
return bin->cur->write->rpath_del (bin);
|
|
return R_FALSE;
|
|
}
|
|
|
|
R_API int r_bin_wr_output(RBin *bin, const char *filename) {
|
|
return r_file_dump (filename, bin->buf->buf, bin->buf->length);
|
|
}
|