7 Star 0 Fork 14

src-openEuler/itrustee_sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0002-add-ftrapv-strip-and-FS-as-the-compiling-flags.patch 929 Bytes
一键复制 编辑 原始数据 按行查看 历史
From 038570fa736be771c622cb241c8c56cc56cbc0a7 Mon Sep 17 00:00:00 2001
From: chenmaodong <chenmaodong@huawei.com>
Date: Wed, 8 Sep 2021 15:16:53 +0800
Subject: [PATCH] add ftrapv, strip, and FS as the compiling flags
Signed-off-by: chenmaodong <chenmaodong@huawei.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 7c84be3..0f5cdff 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ CUR_DIR=$(shell pwd)
iTrustee_SDK_PATH=${CUR_DIR}
TARGET_APP := libteec_adaptor.so
APP_SOURCES += $(iTrustee_SDK_PATH)/src/CA/cloud/libteec_adaptor.c
-APP_CFLAGS += -fstack-protector-strong -fPIC
+APP_CFLAGS += -fstack-protector-strong -fPIC -ftrapv -s -D_FORTIFY_SOURCE=2 -O2
APP_CFLAGS += -I$(iTrustee_SDK_PATH)/include/CA -I$(iTrustee_SDK_PATH)/thirdparty/open_source/libboundscheck/include
APP_LDFLAGS += -z text -z now -z relro -z noexecstack -pie -shared
--
1.8.3.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/itrustee_sdk.git
git@gitee.com:src-openeuler/itrustee_sdk.git
src-openeuler
itrustee_sdk
itrustee_sdk
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385