mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 02:58:08 +00:00
bigger initial map when LTO
This commit is contained in:
@ -10,6 +10,8 @@
|
||||
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
// to prevent the function from being removed
|
||||
unsigned char __afl_lto_mode = 0;
|
||||
|
||||
@ -17,6 +19,7 @@ unsigned char __afl_lto_mode = 0;
|
||||
|
||||
__attribute__((constructor(0))) void __afl_auto_init_globals(void) {
|
||||
|
||||
if (getenv("AFL_DEBUG")) fprintf(stderr, "[__afl_auto_init_globals]\n");
|
||||
__afl_lto_mode = 1;
|
||||
|
||||
}
|
||||
|
@ -63,7 +63,11 @@
|
||||
is used for instrumentation output before __afl_map_shm() has a chance to
|
||||
run. It will end up as .comm, so it shouldn't be too wasteful. */
|
||||
|
||||
u8 __afl_area_initial[MAP_SIZE];
|
||||
#ifdef AFL_REAL_LD
|
||||
u8 __afl_area_initial[256000];
|
||||
#else
|
||||
u8 __afl_area_initial[MAP_SIZE];
|
||||
#endif
|
||||
u8 *__afl_area_ptr = __afl_area_initial;
|
||||
u8 *__afl_dictionary;
|
||||
|
||||
|
Reference in New Issue
Block a user