ANDROID: add support for Clang's Control Flow Integrity (CFI)
This change adds the CONFIG_CFI_CLANG option, CFI error handling, and a faster look-up table for cross module CFI checks. Bug: 145210207 Change-Id: I118303de50114ca6f85d89a7d69c5cbc47e2f5c0 Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
This commit is contained in:
@@ -54,4 +54,7 @@
|
||||
#define __norecordmcount \
|
||||
__attribute__((__section__(".text..ftrace")))
|
||||
#endif
|
||||
|
||||
|
||||
#define __nocfi __attribute__((__no_sanitize__("cfi")))
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user