From 4e2cd497134561836ea84559533980dc88af5ccb Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 26 Sep 2023 08:53:27 +0200 Subject: [PATCH] Enable PIC mode for assembler files (RHEL-6298) Backport from Fedora. Resolves: RHEL-6298 --- 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 2113800..2b12228 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -6,7 +6,7 @@ Summary: Red Hat specific rpm configuration files Name: redhat-rpm-config -Version: 203 +Version: 204 Release: 1%{?dist} # No version specified. License: GPL+ @@ -254,6 +254,9 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora/srpm forge.lua %doc buildflags.md %changelog +* Tue Sep 26 2023 Florian Weimer - 204-1 +- Enable PIC mode for assembler files (RHEL-6298) + * Wed Sep 13 2023 Florian Weimer - 203-1 - Rebuild against more recent downstream branch (#2234024)