* make purge is now less harmful

* add initial support for creating p9 binaries
* Make r_anal_get_fcns() an accessor macro
This commit is contained in:
pancake 2011-11-12 05:20:54 +01:00
parent 75290251da
commit 158962d606
5 changed files with 31 additions and 11 deletions

View File

@ -130,7 +130,20 @@ deinstall uninstall:
@echo
purge:
rm -f ${DESTDIR}/${BINDIR}/r*2
rm -f ${DESTDIR}/${BINDIR}/r2
rm -f ${DESTDIR}/${BINDIR}/radare2
rm -f ${DESTDIR}/${BINDIR}/rabin2
rm -f ${DESTDIR}/${BINDIR}/rafind2
rm -f ${DESTDIR}/${BINDIR}/ranal2
rm -f ${DESTDIR}/${BINDIR}/rax2
rm -f ${DESTDIR}/${BINDIR}/rsc2
rm -f ${DESTDIR}/${BINDIR}/rasm2
rm -f ${DESTDIR}/${BINDIR}/rarc2
rm -f ${DESTDIR}/${BINDIR}/rahash2
rm -f ${DESTDIR}/${BINDIR}/ragg2
rm -f ${DESTDIR}/${BINDIR}/rarun2
rm -f ${DESTDIR}/${BINDIR}/rasc2
rm -f ${DESTDIR}/${BINDIR}/radiff2
rm -f ${DESTDIR}/${LIBDIR}/libr_*
rm -rf ${DESTDIR}/${LIBDIR}/radare2
rm -rf ${DESTDIR}/${INCLUDEDIR}/libr

3
TODO
View File

@ -7,7 +7,7 @@
====[[ 0.9 ]]====
02:47 < Jo-Con-El> Escupe porquería como \323 \177 y tal mezclado con el magic.
* fix r_magic: Escupe porquería como \323 \177 y tal mezclado con el magic.
* Refactor get_sym() and so on...
* Add rasc2 api inside r_egg
@ -27,7 +27,6 @@
* implement 'ax' to get/set xrefs (better than afl <addr>)
* shell encoder - get x86-64 one from twitter
- http://funoverip.net/2011/09/simple-shellcode-obfuscation/
* cleanup magic database.. too slow for search :(
* use centralized pubsub or memcached to sync data
* rabin2 -z /dev/sda1 TAKES TOO LONG. opening r2 /tmp/fs is SLOW as shit.
* Add support for classes (useful for c++, dex, objc, ...)

View File

@ -158,10 +158,6 @@ R_API char *r_anal_strmask (RAnal *anal, const char *data) {
return ret;
}
R_API RList *r_anal_get_fcns(RAnal *anal) {
return anal->fcns;
}
R_API void r_anal_trace_bb(RAnal *anal, ut64 addr) {
RAnalBlock *bbi;
RAnalFcn *fcni;

View File

@ -46,7 +46,6 @@ static RList* sections(RBinArch *arch) {
RBinSection *ptr = NULL;
ut64 textsize, datasize, symssize, spszsize, pcszsize;
int big_endian = arch->info->big_endian;
int rva = baddr (arch);
if (!(ret = r_list_new ()))
return NULL;
@ -165,8 +164,21 @@ static RBinInfo* info(RBinArch *arch) {
/* inspired in http://www.phreedom.org/solar/code/tinype/tiny.97/tiny.asm */
static RBuffer* create(RBin* bin, const ut8 *code, int codelen, const ut8 *data, int datalen) {
eprintf ("TODO: p9create\n");
return NULL;
RBuffer *buf = r_buf_new ();
#define B(x,y) r_buf_append_bytes(buf,(const ut8*)x,y)
#define D(x) r_buf_append_ut32(buf,x)
D (I_MAGIC); // i386 only atm
D (codelen);
D (datalen);
D (4096); // bss
D (0); // syms
D (8*4); // entry
D (4096); // spsz
D (4096); // pcsz
B (code, codelen);
if (datalen>0)
B (data, datalen);
return buf;
}
struct r_bin_plugin_t r_bin_plugin_p9 = {

View File

@ -411,7 +411,7 @@ R_API int r_anal_set_big_endian(RAnal *anal, int boolean);
R_API char *r_anal_strmask (RAnal *anal, const char *data);
R_API void r_anal_trace_bb(RAnal *anal, ut64 addr);
R_API RAnalFcn *r_anal_get_fcn_at(RAnal *anal, ut64 addr);
R_API RList *r_anal_get_fcns(RAnal *anal);
#define r_anal_get_fcns(x) x->fcns
/* bb.c */
R_API RAnalBlock *r_anal_bb_new();