1 /* 2 american fuzzy lop++ - LLVM instrumentation bootstrap 3 ----------------------------------------------------- 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at: 8 9 https://www.apache.org/licenses/LICENSE-2.0 10 11 */ 12 13 #include <stdio.h> 14 #include <stdlib.h> 15 16 // to prevent the function from being removed 17 unsigned char __afl_lto_mode = 0; 18 19 /* Proper initialization routine. */ 20 __afl_auto_init_globals(void)21__attribute__((constructor(0))) void __afl_auto_init_globals(void) { 22 23 if (getenv("AFL_DEBUG")) fprintf(stderr, "[__afl_auto_init_globals]\n"); 24 __afl_lto_mode = 1; 25 26 } 27 28