From 0f50409ae6148b9a78d6a8916b818d3e2b22f8ce Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 5 Jul 2023 08:32:11 +0200 Subject: [PATCH] Enable PIC mode for assembler files (#2167430) --- redhat-hardened-cc1 | 3 +++ redhat-rpm-config.spec | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/redhat-hardened-cc1 b/redhat-hardened-cc1 index fc54bcb..a369517 100644 --- a/redhat-hardened-cc1 +++ b/redhat-hardened-cc1 @@ -1,2 +1,5 @@ *cc1_options: + %{!r:%{!fpie:%{!fPIE:%{!fpic:%{!fPIC:%{!fno-pic:-fPIE}}}}}} + +*cpp_options: ++ %{!r:%{!fpie:%{!fPIE:%{!fpic:%{!fPIC:%{!fno-pic:-fPIE}}}}}} diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index 2ae9c37..06b923c 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -4,7 +4,7 @@ # 2) When making changes, increment the version (in baserelease) by 1. # rpmdev-bumpspec and other tools update the macro below, which is used # in Version: to get the desired effect. -%global baserelease 257 +%global baserelease 258 Summary: Red Hat specific rpm configuration files Name: redhat-rpm-config @@ -254,6 +254,9 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora/srpm forge.lua %doc buildflags.md %changelog +* Wed Jul 5 2023 Florian Weimer - 258-1 +- Enable PIC mode for assembler files (#2167430) + * Wed Jul 05 2023 Frederic Berat - 257-1 - update config.{guess,sub} to gnuconfig git HEAD