From 71f9ad923fb258c446980fb67d60c93a71a7ed4a Mon Sep 17 00:00:00 2001 From: yanghang Date: Thu, 29 Aug 2024 15:03:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=90=91PAC=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yanghang --- interfaces/innerkits/c_api/BUILD.gn | 1 + interfaces/innerkits/ipc_core/BUILD.gn | 1 + interfaces/innerkits/ipc_napi_common/BUILD.gn | 1 + interfaces/innerkits/ipc_single/BUILD.gn | 1 + interfaces/innerkits/libdbinder/BUILD.gn | 1 + interfaces/innerkits/rust/BUILD.gn | 1 + interfaces/kits/js/napi/BUILD.gn | 1 + ipc/native/src/core/BUILD.gn | 1 + 8 files changed, 8 insertions(+) diff --git a/interfaces/innerkits/c_api/BUILD.gn b/interfaces/innerkits/c_api/BUILD.gn index 10218540..c5c1d514 100644 --- a/interfaces/innerkits/c_api/BUILD.gn +++ b/interfaces/innerkits/c_api/BUILD.gn @@ -26,6 +26,7 @@ config("libipc_capi_public_config") { } ohos_shared_library("ipc_capi") { + branch_protector_ret = "pac_ret" include_dirs = [ "$SUBSYSTEM_DIR/interfaces/innerkits/ipc_core/include", "$SUBSYSTEM_DIR/interfaces/innerkits/c_api/include", diff --git a/interfaces/innerkits/ipc_core/BUILD.gn b/interfaces/innerkits/ipc_core/BUILD.gn index a4b57c7f..9461e881 100644 --- a/interfaces/innerkits/ipc_core/BUILD.gn +++ b/interfaces/innerkits/ipc_core/BUILD.gn @@ -30,6 +30,7 @@ ohos_shared_library("ipc_core") { integer_overflow = true } version_script = "libipc_core_map" + branch_protector_ret = "pac_ret" include_dirs = [ "$IPC_CORE_ROOT/c/adapter/access_token/include", "$IPC_CORE_ROOT/c/rpc/include", diff --git a/interfaces/innerkits/ipc_napi_common/BUILD.gn b/interfaces/innerkits/ipc_napi_common/BUILD.gn index 1a314674..49f3f60c 100644 --- a/interfaces/innerkits/ipc_napi_common/BUILD.gn +++ b/interfaces/innerkits/ipc_napi_common/BUILD.gn @@ -25,6 +25,7 @@ if (support_jsapi) { sanitize = { integer_overflow = true } + branch_protector_ret = "pac_ret" include_dirs = [ "include", "../../../utils/include", diff --git a/interfaces/innerkits/ipc_single/BUILD.gn b/interfaces/innerkits/ipc_single/BUILD.gn index 835dab21..c92aaf19 100644 --- a/interfaces/innerkits/ipc_single/BUILD.gn +++ b/interfaces/innerkits/ipc_single/BUILD.gn @@ -28,6 +28,7 @@ ohos_shared_library("ipc_single") { integer_overflow = true } version_script = "libipc_single_map" + branch_protector_ret = "pac_ret" include_dirs = [ "$IPC_CORE_ROOT/c/adapter/access_token/include", "$SUBSYSTEM_DIR/utils/include", diff --git a/interfaces/innerkits/libdbinder/BUILD.gn b/interfaces/innerkits/libdbinder/BUILD.gn index 8f397c5d..f6741513 100644 --- a/interfaces/innerkits/libdbinder/BUILD.gn +++ b/interfaces/innerkits/libdbinder/BUILD.gn @@ -42,6 +42,7 @@ ohos_shared_library("libdbinder") { sanitize = { integer_overflow = true } + branch_protector_ret = "pac_ret" include_dirs = [ "$SUBSYSTEM_DIR/ipc/native/c/rpc/include", "$SUBSYSTEM_DIR/utils/include", diff --git a/interfaces/innerkits/rust/BUILD.gn b/interfaces/innerkits/rust/BUILD.gn index d514d02d..15b7dd7d 100644 --- a/interfaces/innerkits/rust/BUILD.gn +++ b/interfaces/innerkits/rust/BUILD.gn @@ -31,6 +31,7 @@ config("libipc_c_private_config") { } ohos_static_library("ipc_rust_cxx") { + branch_protector_ret = "pac_ret" sources = [ "src/cxx/parcel_wrapper.cpp", "src/cxx/remote_object_wrapper.cpp", diff --git a/interfaces/kits/js/napi/BUILD.gn b/interfaces/kits/js/napi/BUILD.gn index 1a8414e0..32959245 100644 --- a/interfaces/kits/js/napi/BUILD.gn +++ b/interfaces/kits/js/napi/BUILD.gn @@ -25,6 +25,7 @@ if (support_jsapi) { integer_overflow = true } version_script = "librpc_map" + branch_protector_ret = "pac_ret" include_dirs = [ "$SUBSYSTEM_DIR/utils/include", "$SUBSYSTEM_DIR/ipc/native/c/adapter/include", diff --git a/ipc/native/src/core/BUILD.gn b/ipc/native/src/core/BUILD.gn index e4e7d462..5870307a 100644 --- a/ipc/native/src/core/BUILD.gn +++ b/ipc/native/src/core/BUILD.gn @@ -25,6 +25,7 @@ ohos_shared_library("ipc_common") { sanitize = { integer_overflow = true } + branch_protector_ret = "pac_ret" include_dirs = [ "$IPC_CORE_ROOT/src/mock/include", "$SUBSYSTEM_DIR/utils/include",