diff --git a/frameworks/native/vibrator/BUILD.gn b/frameworks/native/vibrator/BUILD.gn index 1072d6d9c644de0690783697ef278582279f119a..42458b96aa18c596827d5715b2d0917b89269dcf 100644 --- a/frameworks/native/vibrator/BUILD.gn +++ b/frameworks/native/vibrator/BUILD.gn @@ -39,6 +39,7 @@ config("miscdevice_service_idl_config") { ohos_source_set("miscdevice_service_stub") { public_configs = [ ":miscdevice_service_idl_config" ] + branch_protector_ret = "pac_ret" sanitize = { cfi = true cfi_cross_dso = true @@ -59,6 +60,7 @@ ohos_source_set("miscdevice_service_stub") { ohos_source_set("miscdevice_service_proxy") { public_configs = [ ":miscdevice_service_idl_config" ] + branch_protector_ret = "pac_ret" sanitize = { cfi = true cfi_cross_dso = true