!10 Add PIE,BIND_NOW,RELRO,STRIP secure compilation options

From: @wk333 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-02-10 01:11:11 +00:00 committed by Gitee
commit a53a391283
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

5
delve.spec Executable file → Normal file
View File

@ -1,5 +1,5 @@
%global goipath github.com/go-delve/delve
%global gobuild go build -mod=vendor
%global gobuild go build -mod=vendor -buildmode=pie -ldflags "-s -w -linkmode=external -extldflags '-Wl,-z,relro -Wl,-z,now'"
%global debug_package %{nil}
Name: delve
@ -44,6 +44,9 @@ rm -rf %{buildroot}
%doc Documentation/*
%changelog
* Thu Feb 09 2023 wangkai <wangkai385@h-partners.com> - 1.9.1-2
- Add PIE,BIND_NOW,RELRO,STRIP secure compilation options
* Mon Aug 29 2022 jinzhiguang <jinzhiguang@kylinos.cn> - 1.9.1-1
- update to v1.9.1