added __afl_final_loc to all compile RTs

This commit is contained in:
van Hauser
2020-03-04 01:51:41 +01:00
parent d559d5a374
commit 05a3418f86
3 changed files with 5 additions and 0 deletions

View File

@ -48,8 +48,10 @@ u8 *__afl_area_ptr = __afl_area_initial;
#ifdef __ANDROID__
u32 __afl_prev_loc;
u32 __afl_final_loc;
#else
__thread u32 __afl_prev_loc;
__thread u32 __afl_final_loc;
#endif
/* Trace a basic block with some ID */

View File

@ -384,6 +384,7 @@ static const u8* main_payload_32 =
#ifndef COVERAGE_ONLY
" .comm __afl_prev_loc, 4, 32\n"
#endif /* !COVERAGE_ONLY */
" .comm __afl_final_loc, 4, 32\n"
" .comm __afl_fork_pid, 4, 32\n"
" .comm __afl_temp, 4, 32\n"
"\n"

View File

@ -63,8 +63,10 @@ u8* __afl_area_ptr = __afl_area_initial;
#ifdef __ANDROID__
u32 __afl_prev_loc;
u32 __afl_final_loc;
#else
__thread u32 __afl_prev_loc;
__thread u32 __afl_final_loc;
#endif
struct cmp_map* __afl_cmp_map;