From 34fff4843d0e9896d93739a86a75c5ec9c564a7d Mon Sep 17 00:00:00 2001 From: LY Date: Thu, 5 Sep 2024 10:14:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=90=AFPAC=E5=90=8E=E5=90=91cfi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: LY --- icu4c/BUILD.gn | 3 +++ 1 file changed, 3 insertions(+) diff --git a/icu4c/BUILD.gn b/icu4c/BUILD.gn index 8301dbb7..9637a53b 100644 --- a/icu4c/BUILD.gn +++ b/icu4c/BUILD.gn @@ -501,6 +501,7 @@ icu_i18n_source = [ ] ohos_shared_library("shared_icuuc") { + branch_protector_ret = "pac_ret" ldflags = [ "-shared", "-lm", @@ -606,6 +607,7 @@ ohos_shared_library("shared_icui18n") { if (defined(is_arkui_x) && is_arkui_x) { ohos_source_set("static_icuuc") { + branch_protector_ret = "pac_ret" configs = [ "//build/config/compiler:rtti" ] public_configs = [ ":icu_config", @@ -661,6 +663,7 @@ if (defined(is_arkui_x) && is_arkui_x) { } } else { ohos_static_library("static_icuuc") { + branch_protector_ret = "pac_ret" configs = [ ":icu_config", "//build/config/compiler:rtti",