Apply SANITIZE_TARGET=safe-stack to 64 bit targets only.

Bug: 27729263
Change-Id: I214a9f40b94f6e6716aca05be774f014e62f73e8
This commit is contained in:
Evgenii Stepanov 2016-05-06 18:15:57 -07:00
parent 9c88e0bfa2
commit 7dcb8b80c5
1 changed files with 6 additions and 0 deletions

View File

@ -75,6 +75,12 @@ ifneq ($(filter thread,$(my_sanitize)),)
endif
endif
ifneq ($(filter safe-stack,$(my_sanitize)),)
ifeq ($(my_32_64_bit_suffix),32)
my_sanitize := $(filter-out safe-stack,$(my_sanitize))
endif
endif
# Undefined symbols can occur if a non-sanitized library links
# sanitized static libraries. That's OK, because the executable
# always depends on the ASan runtime library, which defines these