mirror of
https://github.com/qemu/qemu.git
synced 2026-02-04 02:24:51 +00:00
pc-bios/optionrom: Use 32-bit linker emulation for the optionroms
Without this linker flag, the linking fails on NetBSD v10.1 with: ld: i386 architecture of input file `multiboot.o' is incompatible with i386:x86-64 output ld: i386 architecture of input file `multiboot_dma.o' is incompatible with i386:x86-64 output Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com> Message-ID: <20260121074819.29396-1-thuth@redhat.com>
This commit is contained in:
@@ -36,7 +36,7 @@ config-cc.mak: Makefile
|
|||||||
$(call cc-option,-Wno-array-bounds)) 3> config-cc.mak
|
$(call cc-option,-Wno-array-bounds)) 3> config-cc.mak
|
||||||
-include config-cc.mak
|
-include config-cc.mak
|
||||||
|
|
||||||
override LDFLAGS = -nostdlib -Wl,--build-id=none,-T,$(SRC_DIR)/flat.lds
|
override LDFLAGS = -nostdlib -Wl,--build-id=none,-T,$(SRC_DIR)/flat.lds,-m,elf_i386
|
||||||
|
|
||||||
pvh.img: pvh.o pvh_main.o
|
pvh.img: pvh.o pvh_main.o
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user