OSDN Git Service

Blacklist code for CFI.
authorVishwath Mohan <vishwath@google.com>
Tue, 14 Feb 2017 15:55:37 +0000 (07:55 -0800)
committerVishwath Mohan <vishwath@google.com>
Wed, 15 Feb 2017 20:48:05 +0000 (12:48 -0800)
commit5b69c06f1f8ba3743cc447bed9521eb4ef186dec
treea617c3847afad320bb79f9799cde9c6e6b4e530f
parent22b55e1c54c9844f99b8db64cc45014012105d52
Blacklist code for CFI.

Adds the -fsanitize-blacklist option for CFI, using the built in
blacklist at external/compiler-rt/lib/cfi/cfi_blacklist.txt.

Also refactors the CFI cflags and ldflags into ../soong/cc/makevars.go
to ensure they're consistent across Soong and make projects.

Bug: 30227045
Test: ENABLE_CFI=true m -j40 builds and boots.
Test: The blacklist prevents runtime errors that otherwise occur.
Change-Id: I0c2801ed459a3b9adeb37daff3ca212564801259
core/config_sanitizers.mk