From 299939a045442650ddae9772ab8007b6ad69a345 Mon Sep 17 00:00:00 2001 From: Nicolas Frayer Date: Tue, 30 Jun 2026 11:12:59 +0200 Subject: [PATCH] aarch64/makefile: Pass --no-warn-rwx-segments to the linker Resolves: #RHEL-183536 Signed-off-by: Nicolas Frayer --- ...-Pass-no-warn-rwx-segments-to-the-li.patch | 26 +++++++++++++++++++ gnu-efi.patches | 1 + gnu-efi.spec | 6 ++++- 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 0047-aarch64-makefile-Pass-no-warn-rwx-segments-to-the-li.patch diff --git a/0047-aarch64-makefile-Pass-no-warn-rwx-segments-to-the-li.patch b/0047-aarch64-makefile-Pass-no-warn-rwx-segments-to-the-li.patch new file mode 100644 index 0000000..3f17b19 --- /dev/null +++ b/0047-aarch64-makefile-Pass-no-warn-rwx-segments-to-the-li.patch @@ -0,0 +1,26 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Nicolas Frayer +Date: Tue, 30 Jun 2026 11:07:01 +0200 +Subject: [PATCH] aarch64/makefile: Pass --no-warn-rwx-segments to the linker + +temporary file t.so contains a RWX segment which results +in a warning and the build fails with --fatal-warnings + +Signed-off-by: Nicolas Frayer +--- + Make.rules | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Make.rules b/Make.rules +index 8cb93b0a0392..daa07185d770 100644 +--- a/Make.rules ++++ b/Make.rules +@@ -46,7 +46,7 @@ + $(FORMAT) $*.so $@ + + %.so: %.o +- $(LD) $(LDFLAGS) $^ -o $@ $(LOADLIBES) ++ $(LD) $(LDFLAGS) --no-warn-rwx-segments $^ -o $@ $(LOADLIBES) + + %.o: %.c + $(CC) $(INCDIR) $(CFLAGS) $(CPPFLAGS) -c $< -o $@ diff --git a/gnu-efi.patches b/gnu-efi.patches index ac379c0..a6d9327 100644 --- a/gnu-efi.patches +++ b/gnu-efi.patches @@ -44,3 +44,4 @@ Patch0043: 0043-lfbgrid-Make-pointer-size-testing-not-arch-name-depe.patch Patch0044: 0044-Fix-the-arch-subdirs-in-.gitignore.patch Patch0045: 0045-Use-CFLAGS-with-gcc-print-libgcc-file-name-to-get-th.patch Patch0046: 0046-CFLAGS-add-Wno-pointer-sign.patch +Patch0047: 0047-aarch64-makefile-Pass-no-warn-rwx-segments-to-the-li.patch diff --git a/gnu-efi.spec b/gnu-efi.spec index 0546d3a..40a1799 100644 --- a/gnu-efi.spec +++ b/gnu-efi.spec @@ -2,7 +2,7 @@ Name: gnu-efi Epoch: 1 Version: 3.0.11 %global tarball_version 3.0.9 -Release: 8%{?dist}%{?buildid} +Release: 9%{?dist}%{?buildid} Summary: Development Libraries and headers for EFI License: BSD URL: https://sourceforge.net/projects/gnu-efi/ @@ -178,6 +178,10 @@ find %{buildroot}/%{_prefix}/ -type l | sed 's,%{buildroot}/\+,/,' > compat.lst %endif %changelog +* Tue Jun 30 2026 Nicolas Frayer - 3.0.11-9 +- aarch64/raw: Pass --no-warn-rwx-segments to the linker +- Resolves: #RHEL-183536 + * Mon Aug 09 2021 Mohan Boddu - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags Related: rhbz#1991688