!831 增加stack编译保护

Merge pull request !831 from dingxiaochen/master
This commit is contained in:
openharmony_ci 2024-10-16 03:46:21 +00:00 committed by Gitee
commit 0cd2adef19
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 8 additions and 0 deletions

View File

@ -44,6 +44,8 @@ ohos_shared_library("hril_innerkits") {
"LOG_DOMAIN = 0xD001F08",
]
cflags_cc = [ "-fstack-protector-strong" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",

View File

@ -47,6 +47,8 @@ ohos_shared_library("hril") {
deps = [ "$RIL_ADAPTER/interfaces/innerkits:hril_innerkits" ]
cflags_cc = [ "-fstack-protector-strong" ]
external_deps = [
"bounds_checking_function:libsec_shared",
"c_utils:utils",

View File

@ -34,6 +34,8 @@ ohos_shared_library("hril_hdf") {
"$RIL_ADAPTER/services/hril:hril",
]
cflags_cc = [ "-fstack-protector-strong" ]
external_deps = [
"bounds_checking_function:libsec_shared",
"hdf_core:libhdf_host",

View File

@ -37,6 +37,8 @@ ohos_shared_library("ril_vendor") {
]
deps = [ "$RIL_ADAPTER/interfaces/innerkits:hril_innerkits" ]
cflags_cc = [ "-fstack-protector-strong" ]
external_deps = [
"bounds_checking_function:libsec_shared",
"c_utils:utils",