render / rpms / qemu

Forked from rpms/qemu 9 months ago
Clone

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

deeb93
From 98287d67f3ea6c49795838beda4b020cf236fc20 Mon Sep 17 00:00:00 2001
Adam Williamson e5cb95
From: Cole Robinson <crobinso@redhat.com>
deeb93
Date: Mon, 27 Nov 2023 12:51:25 -0500
Adam Williamson e5cb95
Subject: [PATCH] pc-bios/optionrom: Fix pvh.img ld build failure on fedora
Adam Williamson e5cb95
 rawhide
deeb93
Content-type: text/plain
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