diff --git a/frameworks/config_policy/BUILD.gn b/frameworks/config_policy/BUILD.gn index e167f3a5ef2c3546bce0b3f4219ffbd0c63f6a9d..6ed18f23b37f3f64f65081835f7c424ca18d6140 100644 --- a/frameworks/config_policy/BUILD.gn +++ b/frameworks/config_policy/BUILD.gn @@ -35,12 +35,14 @@ if (defined(ohos_lite) && ohos_kernel_type == "liteos_m") { } } else if (defined(ohos_lite)) { shared_library("configpolicy_util") { + branch_protector_ret = "pac_ret" sources = config_policy_sources public_configs = [ ":config_policy_config" ] external_deps = [ "bounds_checking_function:libsec_shared" ] } } else { ohos_shared_library("configpolicy_util") { + branch_protector_ret = "pac_ret" sources = config_policy_sources public_configs = [ ":config_policy_config" ] deps = [ "etc:customization_etc" ]