add ftrapv, strip, and FS as the compiling flags
Signed-off-by: gaoyusong <gaoyusong2@huawei.com>
This commit is contained in:
parent
a69223b096
commit
d78050aa34
26
0002-add-ftrapv-strip-and-FS-as-the-compiling-flags.patch
Normal file
26
0002-add-ftrapv-strip-and-FS-as-the-compiling-flags.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
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
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: itrustee_sdk
|
Name: itrustee_sdk
|
||||||
Version: 0.1.0
|
Version: 0.1.0
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: Confidential computing framework for developing TA on itrustee OS
|
Summary: Confidential computing framework for developing TA on itrustee OS
|
||||||
ExclusiveArch: aarch64
|
ExclusiveArch: aarch64
|
||||||
|
|
||||||
@ -9,6 +9,7 @@ License: Mulan PSL v2
|
|||||||
URL: https://gitee.com/openeuler/itrustee_sdk
|
URL: https://gitee.com/openeuler/itrustee_sdk
|
||||||
Source0: https://gitee.com/openeuler/itrustee_sdk/repository/archive/v%{version}.tar.gz
|
Source0: https://gitee.com/openeuler/itrustee_sdk/repository/archive/v%{version}.tar.gz
|
||||||
Patch0: 0001-add-Makefile-to-create-libteec_adaptor.so.patch
|
Patch0: 0001-add-Makefile-to-create-libteec_adaptor.so.patch
|
||||||
|
Patch1: 0002-add-ftrapv-strip-and-FS-as-the-compiling-flags.patch
|
||||||
|
|
||||||
Provides: libteec_adaptor.so()(64bit)
|
Provides: libteec_adaptor.so()(64bit)
|
||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
@ -39,6 +40,9 @@ strip %{buildroot}/lib64/*.so
|
|||||||
/lib64/libteec_adaptor.so
|
/lib64/libteec_adaptor.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 27 2022 gaoyusong <gaoyusong2@huawei.com> - 0.1.0-5
|
||||||
|
- add ftrapv, strip, and FS as the compiling flags
|
||||||
|
|
||||||
* Thu Mar 24 2022 liyanan <liyanan32@huawei.com> - 0.1.0-4
|
* Thu Mar 24 2022 liyanan <liyanan32@huawei.com> - 0.1.0-4
|
||||||
- remove %dist
|
- remove %dist
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user