From 40f0bd77a430cca39b09de4b97813bd95a09f9fb Mon Sep 17 00:00:00 2001 From: snoweay Date: Fri, 19 Mar 2021 11:38:58 +0800 Subject: [PATCH] spec: Add secure compile args --- nvwa.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvwa.spec b/nvwa.spec index c96ab1a..4b87209 100644 --- a/nvwa.spec +++ b/nvwa.spec @@ -24,11 +24,11 @@ A tool used to automate the process of seamless update of the openEuler. %build cd src -go build -mod=vendor +go build -mod=vendor -buildmode=pie cd - cd tools -gcc %{name}-pin.c -o %{name}-pin +gcc %{name}-pin.c -o %{name}-pin -fstack-protector-all -fPIE -pie -Wl,-z,noexecstack,-z,relro,-z,now cd - %install -- Gitee