Module Name: src Committed By: christos Date: Fri Oct 25 18:03:59 UTC 2019
Modified Files: src/external/gpl3/gcc/dist/libsanitizer/asan: asan_mapping.h Log Message: Unbreak the sanitizers for gcc. The sanitizer offset defined in libsanitizer needs to match with the compiler concept of TARGET_ASAN_SHADOW_OFFSET, since the compiler generates instructions to access memory at that offset in the code, and expects the sanitizer library to have mapped something there. If there is disagreement, Mr. Segmentation Fault comes and resolves it for you. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 \ src/external/gpl3/gcc/dist/libsanitizer/asan/asan_mapping.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl3/gcc/dist/libsanitizer/asan/asan_mapping.h diff -u src/external/gpl3/gcc/dist/libsanitizer/asan/asan_mapping.h:1.6 src/external/gpl3/gcc/dist/libsanitizer/asan/asan_mapping.h:1.7 --- src/external/gpl3/gcc/dist/libsanitizer/asan/asan_mapping.h:1.6 Tue Oct 1 06:38:23 2019 +++ src/external/gpl3/gcc/dist/libsanitizer/asan/asan_mapping.h Fri Oct 25 14:03:59 2019 @@ -185,8 +185,10 @@ static const u64 kWindowsShadowOffset32 # define SHADOW_OFFSET kSystemZ_ShadowOffset64 # elif SANITIZER_FREEBSD # define SHADOW_OFFSET kFreeBSD_ShadowOffset64 -# elif SANITIZER_NETBSD -# define SHADOW_OFFSET kNetBSD_ShadowOffset64 +// XXX: see TARGET_ASAN_SHADOW_OFFSET in gcc. +// for example ix86_asan_shadow_offset() in i386.c +// # elif SANITIZER_NETBSD +// # define SHADOW_OFFSET kNetBSD_ShadowOffset64 # elif SANITIZER_MAC # define SHADOW_OFFSET kDefaultShadowOffset64 # elif defined(__mips64)