android: support host and target 32bit build

This commit is contained in:
Jiangen Jiao
2021-03-25 12:29:27 +08:00
parent 2dac4e785f
commit c892642057
5 changed files with 168 additions and 23 deletions

View File

@ -588,9 +588,9 @@ static void edit_params(u32 argc, char **argv, char **envp) {
if (instrument_mode == INSTRUMENT_PCGUARD) {
#if LLVM_MAJOR > 10 || (LLVM_MAJOR == 10 && LLVM_MINOR > 0)
#ifdef __ANDROID__
#if defined __ANDROID__ || ANDROID
cc_params[cc_par_cnt++] = "-fsanitize-coverage=trace-pc-guard";
instrument_mode != INSTRUMENT_LLVMNATIVE;
instrument_mode = INSTRUMENT_LLVMNATIVE;
#else
if (have_instr_list) {
@ -2023,7 +2023,7 @@ int main(int argc, char **argv, char **envp) {
if (!be_quiet && cmplog_mode)
printf("CmpLog mode by <andreafioraldi@gmail.com>\n");
#ifndef __ANDROID__
#if !defined(__ANDROID__) && !defined(ANDROID)
ptr = find_object("afl-compiler-rt.o", argv[0]);
if (!ptr) {