From a77e313e39fc5cdc5a7c84cf01f8c6fac7c46157 Mon Sep 17 00:00:00 2001 From: wang--ge Date: Sat, 3 Dec 2022 17:28:12 +0800 Subject: [PATCH] add relro flag (cherry picked from commit 2c6e6bfcc1bdce9480db9c2ba106b4193cf46ad9) --- dietlibc.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dietlibc.spec b/dietlibc.spec index a162440..ae0ba7b 100644 --- a/dietlibc.spec +++ b/dietlibc.spec @@ -1,4 +1,4 @@ -%global fixcflags -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables %xtra_fixcflags -Os -g3 -Werror-implicit-function-declaration -Wno-unused -Wno-switch -fPIE -Wl,-z,now +%global fixcflags -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables %xtra_fixcflags -Os -g3 -Werror-implicit-function-declaration -Wno-unused -Wno-switch -fPIE -Wl,-z,relro,-z,now %global basemakeflags prefix=%pkglibdir BINDIR=%{_bindir} MAN1DIR=%{_mandir}/man1 CFLAGS="$RPM_OPT_FLAGS %fixcflags $XTRA_CFLAGS" PDIET=%pkglibdir STRIP=: %global pkglibdir /usr/lib/dietlibc @@ -11,7 +11,7 @@ Name: dietlibc Version: 0.34 -Release: 4 +Release: 5 Summary: A libc optimized for small size License: GPLv2 URL: http://www.fefe.de/dietlibc/ @@ -93,6 +93,9 @@ ulimit -m $[ 128*1024 ] -v $[ 256*1024 ] -d $[ 128*1024 ] -s 512 %doc %{_mandir}/*/* %changelog +* Sat Dec 03 2022 Ge Wang - 0.34-5 +- Add RELRO flags + * Tue Sep 07 2021 lingsheng - 0.34-4 - Add BIND_NOW and PIE flags