已合并
feat: enable BTI branch protector for account SOs #3748
zhenghui25创建于 8月5日
feat: enable BTI branch protector for account SOs #3748
已合并
共 7 个文件变更+7-0
| @@ -69,6 +69,7 @@ idl_gen_interface("account_iam_interface") { | |||
| 69 | 69 | ||
| 70 | ohos_shared_library("account_iam_innerkits") { | 70 | ohos_shared_library("account_iam_innerkits") { |
| 71 | branch_protector_ret = "pac_ret" | 71 | branch_protector_ret = "pac_ret" |
| 72 | + branch_protector_frt = "bti" | ||
| 72 | 73 | ||
| 73 | sanitize = { | 74 | sanitize = { |
| 74 | cfi = true | 75 | cfi = true |
| @@ -64,6 +64,7 @@ config("os_account_manager_lite_public_config") { | |||
| 64 | 64 | ||
| 65 | ohos_shared_library("os_account_innerkits") { | 65 | ohos_shared_library("os_account_innerkits") { |
| 66 | branch_protector_ret = "pac_ret" | 66 | branch_protector_ret = "pac_ret" |
| 67 | + branch_protector_frt = "bti" | ||
| 67 | 68 | ||
| 68 | sanitize = { | 69 | sanitize = { |
| 69 | cfi = true | 70 | cfi = true |
| @@ -34,6 +34,7 @@ config("account_napi_common_config") { | |||
| 34 | 34 | ||
| 35 | ohos_shared_library("account_napi_common") { | 35 | ohos_shared_library("account_napi_common") { |
| 36 | branch_protector_ret = "pac_ret" | 36 | branch_protector_ret = "pac_ret" |
| 37 | + branch_protector_frt = "bti" | ||
| 37 | include_dirs = [] | 38 | include_dirs = [] |
| 38 | configs = [ ":account_napi_common_config" ] | 39 | configs = [ ":account_napi_common_config" ] |
| 39 | public_configs = [ ":account_napi_common_config" ] | 40 | public_configs = [ ":account_napi_common_config" ] |
| @@ -34,6 +34,7 @@ config("domain_account_napi_kit_config") { | |||
| 34 | 34 | ||
| 35 | ohos_shared_library("domain_account_napi") { | 35 | ohos_shared_library("domain_account_napi") { |
| 36 | branch_protector_ret = "pac_ret" | 36 | branch_protector_ret = "pac_ret" |
| 37 | + branch_protector_frt = "bti" | ||
| 37 | include_dirs = [] | 38 | include_dirs = [] |
| 38 | 39 | ||
| 39 | configs = [ ":domain_account_napi_kit_config" ] | 40 | configs = [ ":domain_account_napi_kit_config" ] |
| @@ -41,6 +41,7 @@ config("osaccount_kit_config") { | |||
| 41 | 41 | ||
| 42 | ohos_shared_library("osaccount") { | 42 | ohos_shared_library("osaccount") { |
| 43 | branch_protector_ret = "pac_ret" | 43 | branch_protector_ret = "pac_ret" |
| 44 | + branch_protector_frt = "bti" | ||
| 44 | configs = [ ":osaccount_kit_config" ] | 45 | configs = [ ":osaccount_kit_config" ] |
| 45 | 46 | ||
| 46 | cflags_cc = [ | 47 | cflags_cc = [ |