[packages/rpm/dev-5.4.17] - rel 0.16: add -Werror=trampolines to prevent GCC from generating code that require executable stac

qboosh qboosh at pld-linux.org
Tue Feb 4 21:29:55 CET 2020


commit 1f021215ff60f1308aab8b247098c9ca1680542a
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Oct 30 22:05:59 2018 +0100

    - rel 0.16: add -Werror=trampolines to prevent GCC from generating code that require executable stack
    
    - add -Werror=trampoline to prevent GCC from generating code that require executable stack
    
    - rel 51; fix -Werror=trampolines option

 macros.pld.in | 3 ++-
 rpm.spec      | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/rpm.spec b/rpm.spec
index 5ab0ccc..9dab25b 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -58,7 +58,7 @@ Summary(ru.UTF-8):	Менеджер пакетов от RPM
 Summary(uk.UTF-8):	Менеджер пакетів від RPM
 Name:		rpm
 Version:	5.4.17
-Release:	0.15
+Release:	0.16
 License:	LGPL v2.1
 Group:		Base
 # http://rpm5.org/files/rpm/rpm-5.4/rpm-5.4.17-0.20160512.src.rpm
diff --git a/macros.pld.in b/macros.pld.in
index de2f125..82cebc7 100644
--- a/macros.pld.in
+++ b/macros.pld.in
@@ -179,7 +179,8 @@ pakietu oraz przy odpluskwianiu samego pakietu.\
 # cf http://wiki.mandriva.com/en/Development/Packaging/Problems#format_not_a_string_literal_and_no_format_arguments
 %Werror_cflags		-Wformat -Werror=format-security
 
-%_ssp_cflags		-fstack-protector-strong --param=ssp-buffer-size=4
+# Use -Werror=trampolines to prevent GCC from generating code that require executable stack
+%_ssp_cflags		-fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines
 %__common_cflags	-O2 -fwrapv -pipe %{Werror_cflags} %{debuginfocflags} %{?_fortify_cflags} %{!?nospecflags:%{?specflags}}
 %__common_cflags_with_ssp	%{__common_cflags} %{?_ssp_cflags}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm.git/commitdiff/1f021215ff60f1308aab8b247098c9ca1680542a



More information about the pld-cvs-commit mailing list