diff --git a/adapter/uhdf2/hdi/BUILD.gn b/adapter/uhdf2/hdi/BUILD.gn index 87ccdd454562d3756a309a8a4354fe64ec730318..43bf6e0f4bbde8e43a39fad66cd8d6a8464ffac8 100644 --- a/adapter/uhdf2/hdi/BUILD.gn +++ b/adapter/uhdf2/hdi/BUILD.gn @@ -60,6 +60,7 @@ if (defined(ohos_lite)) { } } else { ohos_shared_library("libhdi") { + branch_protector_ret = "pac_ret" if (target_cpu == "arm64" || target_cpu == "x86_64") { defines = [ "__ARCH64__" ] } diff --git a/adapter/uhdf2/ipc/BUILD.gn b/adapter/uhdf2/ipc/BUILD.gn index fdb4e4c76120cde9213344cbe16818f97de00909..1bef89f422aa7ee2896fc8afdacc4fcf1b94b30e 100644 --- a/adapter/uhdf2/ipc/BUILD.gn +++ b/adapter/uhdf2/ipc/BUILD.gn @@ -32,6 +32,7 @@ if (defined(ohos_lite)) { } } else { ohos_shared_library("libhdf_ipc_adapter") { + branch_protector_ret = "pac_ret" include_dirs = [ "include", "$hdf_framework_path/utils/include", diff --git a/adapter/uhdf2/pub_utils/BUILD.gn b/adapter/uhdf2/pub_utils/BUILD.gn index 22dae89f353b2082ab89f071b280a098ee7e83b0..173d86786aa4f54685dae55d779df7965f7f4e45 100644 --- a/adapter/uhdf2/pub_utils/BUILD.gn +++ b/adapter/uhdf2/pub_utils/BUILD.gn @@ -33,6 +33,7 @@ if (defined(ohos_lite)) { } } else { ohos_shared_library("libpub_utils") { + branch_protector_ret = "pac_ret" include_dirs = [ "$hdf_framework_path/utils/include", "$hdf_uhdf_path/utils/include", diff --git a/adapter/uhdf2/utils/BUILD.gn b/adapter/uhdf2/utils/BUILD.gn index a2f95faa4b3298ec32e60e2f9ae5ba96391bc18c..773dc37729201890f375342d9d6469f9c6cd9445 100644 --- a/adapter/uhdf2/utils/BUILD.gn +++ b/adapter/uhdf2/utils/BUILD.gn @@ -108,6 +108,7 @@ if (defined(ohos_lite)) { } ohos_shared_library("libhdf_utils") { + branch_protector_ret = "pac_ret" include_dirs = [ "$hdf_framework_path/include", "$hdf_framework_path/include/core",