X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=config%2Fbootstrap-asan.mk;h=e73d4c2cfb8078f0f65cf4b4b529b51c27442b07;hb=b078f3ac8803297bfc8416c20e09d0863c5ac6cc;hp=e3f34f5ad49ea0e7df17d3b6d2423d4230611430;hpb=2cc10f5b8542e917ec7dcc4721af0c32a12bea95;p=deliverable%2Fbinutils-gdb.git diff --git a/config/bootstrap-asan.mk b/config/bootstrap-asan.mk index e3f34f5ad4..e73d4c2cfb 100644 --- a/config/bootstrap-asan.mk +++ b/config/bootstrap-asan.mk @@ -1,7 +1,11 @@ # This option enables -fsanitize=address for stage2 and stage3. +# Suppress LeakSanitizer in bootstrap. +export ASAN_OPTIONS=detect_leaks=0:use_odr_indicator=1 + STAGE2_CFLAGS += -fsanitize=address STAGE3_CFLAGS += -fsanitize=address POSTSTAGE1_LDFLAGS += -fsanitize=address -static-libasan \ + -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ \ -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/ \ -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/.libs