From e21361f28c7c8a526d31d04982809adc21374fda Mon Sep 17 00:00:00 2001 From: Frank Tang Date: Mon, 30 Sep 2024 15:53:06 -0700 Subject: [PATCH] ICU-22264 Add -fsanitize=cfi-icall --- .github/workflows/icu4c.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/icu4c.yml b/.github/workflows/icu4c.yml index 98530eab52a..fb3fa67ea85 100644 --- a/.github/workflows/icu4c.yml +++ b/.github/workflows/icu4c.yml @@ -249,10 +249,10 @@ jobs: env: CC: clang CXX: clang++ - # add -fsanitize=cfi-vcall -fsanitize=cfi-icall later - CXXFLAGS: -flto -fvisibility=hidden -fsanitize=cfi-derived-cast -fno-sanitize-trap=cfi -fno-inline-functions -fno-inline -fno-omit-frame-pointer -O1 - # add -fsanitize=cfi-vcall -fsanitize=cfi-icall later - LDFLAGS: -flto -fvisibility=hidden -fuse-ld=gold -fsanitize=cfi-derived-cast -fsanitize=cfi-unrelated-cast -fno-sanitize-trap=cfi -fsanitize-cfi-icall-generalize-pointers + # add -fsanitize=cfi-vcall later + CXXFLAGS: -flto -fvisibility=hidden -fsanitize=cfi-derived-cast -fno-sanitize-trap=cfi -fno-inline-functions -fno-inline -fno-omit-frame-pointer -O1 -fsanitize=cfi-icall + # add -fsanitize=cfi-vcall later + LDFLAGS: -flto -fvisibility=hidden -fuse-ld=gold -fsanitize=cfi-derived-cast -fsanitize=cfi-unrelated-cast -fno-sanitize-trap=cfi -fsanitize-cfi-icall-generalize-pointers -fsanitize=cfi-icall # Clang Linux with thread sanitizer. clang-tsan: