X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=config%2Fbootstrap-asan.mk;h=e73d4c2cfb8078f0f65cf4b4b529b51c27442b07;hb=4b4477b52eee60ddadd59c36ffd778bbd9ab1c07;hp=d37a9da6bbf5daad97e0bf7ceb71f8f5fb86ad42;hpb=8f7adb5a6c563a1111e869da758433aa0e0f280d;p=deliverable%2Fbinutils-gdb.git diff --git a/config/bootstrap-asan.mk b/config/bootstrap-asan.mk index d37a9da6bb..e73d4c2cfb 100644 --- a/config/bootstrap-asan.mk +++ b/config/bootstrap-asan.mk @@ -1,6 +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