mirror of
https://gitee.com/openharmony/arkcompiler_runtime_core
synced 2025-02-17 05:39:04 +00:00
Enable PAC in Verifier SO
Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/IAPSN6 Signed-off-by: chenyiyuan <chenyiyuan6@huawei.com> Change-Id: I6cac34e96114c85cb587c1499f3b92e494037228
This commit is contained in:
parent
3fc3e06774
commit
bc4535c83b
6
BUILD.gn
6
BUILD.gn
@ -250,12 +250,6 @@ config("ark_config") {
|
|||||||
configs += [ "$ark_root/plugins/$plugin:ark_config" ]
|
configs += [ "$ark_root/plugins/$plugin:ark_config" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
if (enabled_pac_data_protect) {
|
|
||||||
cflags_c += [ "-march=armv8.4-a" ]
|
|
||||||
cflags_cc += [ "-march=armv8.4-a" ]
|
|
||||||
defines += [ "PANDA_ENABLE_DATA_PROTECT" ]
|
|
||||||
}
|
|
||||||
|
|
||||||
if (current_cpu == "arm") {
|
if (current_cpu == "arm") {
|
||||||
cflags_cc += [
|
cflags_cc += [
|
||||||
"-march=armv7-a",
|
"-march=armv7-a",
|
||||||
|
@ -21,12 +21,13 @@ if (is_standard_system) {
|
|||||||
|
|
||||||
declare_args() {
|
declare_args() {
|
||||||
enabled_plugins = default_enabled_plugins
|
enabled_plugins = default_enabled_plugins
|
||||||
pandas_support_pac_oh_pac_data_protect = false
|
|
||||||
enabled_pac_data_protect = false
|
enabled_pac_data_protect = false
|
||||||
}
|
}
|
||||||
|
|
||||||
if (defined(target_cpu) && target_cpu == "arm64" &&
|
if (!ark_standalone_build && !(defined(is_arkui_x) && is_arkui_x) && is_ohos &&
|
||||||
pandas_support_pac_oh_pac_data_protect && !is_emulator) {
|
is_standard_system && target_cpu == "arm64" && !is_emulator &&
|
||||||
|
defined(global_parts_info) &&
|
||||||
|
defined(global_parts_info.security_code_signature)) {
|
||||||
enabled_pac_data_protect = true
|
enabled_pac_data_protect = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,6 +31,11 @@ config("arkfile_public_config") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
config("data_protect_configs") {
|
||||||
|
cflags_cc = [ "-march=armv8.4-a" ]
|
||||||
|
defines = [ "PANDA_ENABLE_DATA_PROTECT" ]
|
||||||
|
}
|
||||||
|
|
||||||
config("arkfile_fuzz_config") {
|
config("arkfile_fuzz_config") {
|
||||||
configs = [ "$build_root/config/compiler:exceptions" ]
|
configs = [ "$build_root/config/compiler:exceptions" ]
|
||||||
defines = [ "SUPPORT_KNOWN_EXCEPTION" ]
|
defines = [ "SUPPORT_KNOWN_EXCEPTION" ]
|
||||||
@ -100,6 +105,11 @@ ohos_static_library("libarkfile_static") {
|
|||||||
|
|
||||||
public_configs = libarkfile_configs
|
public_configs = libarkfile_configs
|
||||||
|
|
||||||
|
if (enabled_pac_data_protect) {
|
||||||
|
configs = libarkfile_configs
|
||||||
|
configs += [ ":data_protect_configs" ]
|
||||||
|
}
|
||||||
|
|
||||||
deps = [
|
deps = [
|
||||||
":arkfile_header_deps",
|
":arkfile_header_deps",
|
||||||
"$ark_root/libpandabase:libarkbase_static",
|
"$ark_root/libpandabase:libarkbase_static",
|
||||||
|
@ -57,6 +57,9 @@ libarkverifier_sources = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
ohos_shared_library("libarkverifier") {
|
ohos_shared_library("libarkverifier") {
|
||||||
|
if (!ark_standalone_build) {
|
||||||
|
branch_protector_ret = "pac_ret"
|
||||||
|
}
|
||||||
sources = libarkverifier_sources
|
sources = libarkverifier_sources
|
||||||
|
|
||||||
deps = [ "$ark_root/libpandafile:libarkfile_static_verifier" ]
|
deps = [ "$ark_root/libpandafile:libarkfile_static_verifier" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user