aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArve Hjønnevåg <arve@android.com>2024-03-15 12:37:39 -0700
committerArve Hjønnevåg <arve@android.com>2024-03-18 11:42:03 -0700
commit289076187cff0f65dbb4046f9a6f29def7bf89df (patch)
treea67914db240bda60184916e35ee30d88efc78f4a
parent9743882e1476a70f4278c7d2c55d70ea5f987ecf (diff)
downloadcommon-289076187cff0f65dbb4046f9a6f29def7bf89df.tar.gz
top: main: Disable kcfi in addition to cfi for .ctors
Allows switching from cfi to kcfi. Bug: 304585390 Change-Id: Ie7928e9d621946c12905362d03bf6eedcfd83746
-rw-r--r--top/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/top/main.c b/top/main.c
index 920fa029..19a3e33a 100644
--- a/top/main.c
+++ b/top/main.c
@@ -58,7 +58,7 @@ extern void kernel_init(void);
/* constructors inserted by clang for global C++ objects currently do not have
* CFI type info, so we have to disable this check until this is fixed */
-__attribute__((no_sanitize("cfi")))
+__attribute__((no_sanitize("cfi", "kcfi")))
static void call_constructors(void)
{
void (**ctor)(void);