From fa6bd5d3f4dc18fc70513050ad7e75b9d3ff092e Mon Sep 17 00:00:00 2001 From: w30052974 Date: Wed, 18 Sep 2024 10:04:28 +0800 Subject: [PATCH] =?UTF-8?q?branch=5Fprotector=5Fret=20add=20=E5=90=88?= =?UTF-8?q?=E5=85=A5=E8=93=9D=E5=8C=BA=E4=B8=BB=E5=B9=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: w30052974 --- frameworks/native/neural_network_core/BUILD.gn | 1 + frameworks/native/neural_network_runtime/BUILD.gn | 1 + 2 files changed, 2 insertions(+) diff --git a/frameworks/native/neural_network_core/BUILD.gn b/frameworks/native/neural_network_core/BUILD.gn index bbfe81d..5d221b4 100644 --- a/frameworks/native/neural_network_core/BUILD.gn +++ b/frameworks/native/neural_network_core/BUILD.gn @@ -38,6 +38,7 @@ nnrt_core_sources = [ ] ohos_shared_library("libneural_network_core") { + branch_protector_ret = "pac_ret" sources = nnrt_core_sources output_extension = "so" diff --git a/frameworks/native/neural_network_runtime/BUILD.gn b/frameworks/native/neural_network_runtime/BUILD.gn index cf98d69..d17255d 100644 --- a/frameworks/native/neural_network_runtime/BUILD.gn +++ b/frameworks/native/neural_network_runtime/BUILD.gn @@ -164,6 +164,7 @@ ops_sources = [ ] ohos_shared_library("libneural_network_runtime") { + branch_protector_ret = "pac_ret" sources = nnrt_sources sources += ops_sources output_extension = "so" -- Gitee