diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/bootstrap-hwasan.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/config/bootstrap-hwasan.mk b/config/bootstrap-hwasan.mk index 4f60bed..91989f4 100644 --- a/config/bootstrap-hwasan.mk +++ b/config/bootstrap-hwasan.mk @@ -1,7 +1,11 @@ # This option enables -fsanitize=hwaddress for stage2 and stage3. +# We need to disable random frame tags for bootstrap since the autoconf check +# for which direction the stack is growing has UB that a random frame tag +# breaks. Running with a random frame tag gives approx. 50% chance of +# bootstrap comparison diff in libiberty/alloca.c. -STAGE2_CFLAGS += -fsanitize=hwaddress -STAGE3_CFLAGS += -fsanitize=hwaddress +STAGE2_CFLAGS += -fsanitize=hwaddress --param hwasan-random-frame-tag=0 +STAGE3_CFLAGS += -fsanitize=hwaddress --param hwasan-random-frame-tag=0 POSTSTAGE1_LDFLAGS += -fsanitize=hwaddress -static-libhwasan \ -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ \ -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/hwasan/ \ |