Blame 0001-pc-bios-optionrom-Fix-pvh.img-ld-build-failure-on-fe.patch

Adam Williamson e5cb95
From 9a9ff4c9129de5d65a0e7cbba45a8ad89ddc51cd Mon Sep 17 00:00:00 2001
Adam Williamson e5cb95
From: Cole Robinson <crobinso@redhat.com>
Adam Williamson e5cb95
Date: Tue, 28 Nov 2023 09:36:47 -0500
Adam Williamson e5cb95
Subject: [PATCH] pc-bios/optionrom: Fix pvh.img ld build failure on fedora
Adam Williamson e5cb95
 rawhide
Adam Williamson e5cb95
Adam Williamson e5cb95
binutils 2.39 shows some warnings when building pvh.img
Adam Williamson e5cb95
Adam Williamson e5cb95
/usr/bin/ld: warning: pvh.o: missing .note.GNU-stack section implies executable stack
Adam Williamson e5cb95
/usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
Adam Williamson e5cb95
/usr/bin/ld: warning: pvh.img has a LOAD segment with RWX permissions
Adam Williamson e5cb95
Adam Williamson e5cb95
The latter of which is fatal on Fedora rawhide for some reason.
Adam Williamson e5cb95
Adam Williamson e5cb95
Add linker options to suppress the errors
Adam Williamson e5cb95
Adam Williamson e5cb95
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Adam Williamson e5cb95
---
Adam Williamson e5cb95
 pc-bios/optionrom/Makefile | 2 +-
Adam Williamson e5cb95
 1 file changed, 1 insertion(+), 1 deletion(-)
Adam Williamson e5cb95
Adam Williamson e5cb95
diff --git a/pc-bios/optionrom/Makefile b/pc-bios/optionrom/Makefile
Adam Williamson e5cb95
index 30d07026c7..f54ed39b54 100644
Adam Williamson e5cb95
--- a/pc-bios/optionrom/Makefile
Adam Williamson e5cb95
+++ b/pc-bios/optionrom/Makefile
Adam Williamson e5cb95
@@ -36,7 +36,7 @@ config-cc.mak: Makefile
Adam Williamson e5cb95
 	    $(call cc-option,-Wno-array-bounds)) 3> config-cc.mak
Adam Williamson e5cb95
 -include config-cc.mak
Adam Williamson e5cb95
 
Adam Williamson e5cb95
-override LDFLAGS = -nostdlib -Wl,--build-id=none,-T,$(SRC_DIR)/flat.lds
Adam Williamson e5cb95
+override LDFLAGS = -nostdlib -Wl,--build-id=none,-T,$(SRC_DIR)/flat.lds -Wl,--no-warn-rwx-segments -Wl,--no-warn-execstack
Adam Williamson e5cb95
 
Adam Williamson e5cb95
 pvh.img: pvh.o pvh_main.o
Adam Williamson e5cb95
 
Adam Williamson e5cb95
-- 
Adam Williamson e5cb95
2.43.0
Adam Williamson e5cb95