Skip to content
Snippets Groups Projects
Commit 842cd9de authored by van Hauser's avatar van Hauser
Browse files

final touches before 2.60

parent 4b4effe3
Branches
Tags 2.60c
No related merge requests found
...@@ -326,7 +326,6 @@ clean: ...@@ -326,7 +326,6 @@ clean:
$(MAKE) -C qemu_mode/unsigaction clean $(MAKE) -C qemu_mode/unsigaction clean
$(MAKE) -C qemu_mode/libcompcov clean $(MAKE) -C qemu_mode/libcompcov clean
$(MAKE) -C src/third_party/libradamsa/ clean $(MAKE) -C src/third_party/libradamsa/ clean
-test -e unicorn_mode/unicorn/Makefile && $(MAKE) -C unicorn_mode/unicorn clean
-rm -rf unicorn_mode/unicorn -rm -rf unicorn_mode/unicorn
distrib: all radamsa distrib: all radamsa
......
...@@ -23,7 +23,7 @@ Version ++2.59d (develop): ...@@ -23,7 +23,7 @@ Version ++2.59d (develop):
- added preeny's desock_dup ld_preload library as - added preeny's desock_dup ld_preload library as
./experimental/socket_fuzzing for network fuzzing ./experimental/socket_fuzzing for network fuzzing
- added AFL_AS_FORCE_INSTRUMENT environment variable for afl-as - this is - added AFL_AS_FORCE_INSTRUMENT environment variable for afl-as - this is
for retrorewrite project for the retrorewrite project
- we now set QEMU_SET_ENV from AFL_PRELOAD when qemu_mode is used - we now set QEMU_SET_ENV from AFL_PRELOAD when qemu_mode is used
......
...@@ -49,7 +49,11 @@ static void find_obj(u8* argv0) { ...@@ -49,7 +49,11 @@ static void find_obj(u8* argv0) {
if (afl_path) { if (afl_path) {
#ifdef __ANDROID__
tmp = alloc_printf("%s/afl-llvm-rt.so", afl_path);
#else
tmp = alloc_printf("%s/afl-llvm-rt.o", afl_path); tmp = alloc_printf("%s/afl-llvm-rt.o", afl_path);
#endif
if (!access(tmp, R_OK)) { if (!access(tmp, R_OK)) {
...@@ -73,7 +77,11 @@ static void find_obj(u8* argv0) { ...@@ -73,7 +77,11 @@ static void find_obj(u8* argv0) {
dir = ck_strdup(argv0); dir = ck_strdup(argv0);
*slash = '/'; *slash = '/';
#ifdef __ANDROID__
tmp = alloc_printf("%s/afl-llvm-rt.so", afl_path);
#else
tmp = alloc_printf("%s/afl-llvm-rt.o", dir); tmp = alloc_printf("%s/afl-llvm-rt.o", dir);
#endif
if (!access(tmp, R_OK)) { if (!access(tmp, R_OK)) {
...@@ -88,8 +96,14 @@ static void find_obj(u8* argv0) { ...@@ -88,8 +96,14 @@ static void find_obj(u8* argv0) {
} }
#ifdef __ANDROID__
if (!access(AFL_PATH "/afl-llvm-rt.so", R_OK)) {
#else
if (!access(AFL_PATH "/afl-llvm-rt.o", R_OK)) { if (!access(AFL_PATH "/afl-llvm-rt.o", R_OK)) {
#endif
obj_path = AFL_PATH; obj_path = AFL_PATH;
return; return;
...@@ -358,7 +372,7 @@ static void edit_params(u32 argc, char** argv) { ...@@ -358,7 +372,7 @@ static void edit_params(u32 argc, char** argv) {
} }
//#ifndef __ANDROID__ // not sure, we might need these ifdefs for Android #ifndef __ANDROID__
switch (bit_mode) { switch (bit_mode) {
case 0: case 0:
...@@ -383,7 +397,7 @@ static void edit_params(u32 argc, char** argv) { ...@@ -383,7 +397,7 @@ static void edit_params(u32 argc, char** argv) {
} }
//#endif #endif
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment