af68a7132d
- Updating to Sphinx v3.1.2 in Factory is exposing an issue in qemu doc sources. Fix it docs-fix-trace-docs-build-with-sphinx-3..patch - Fix DoS possibility in ati-vga emulation (CVE-2020-13800 bsc#1172495) ati-vga-check-mm_index-before-recursive-.patch - Fix DoS possibility in Network Block Device (nbd) support infrastructure (CVE-2020-10761 bsc#1172710) nbd-server-Avoid-long-error-message-asse.patch - Fix null pointer dereference possibility (DoS) in MegaRAID SAS 8708EM2 emulation (CVE-2020-13659 bsc#1172386) exec-set-map-length-to-zero-when-returni.patch - Fix OOB access possibility in MegaRAID SAS 8708EM2 emulation (CVE-2020-13362 bsc#1172383) megasas-use-unsigned-type-for-reply_queu.patch - Fix legacy IGD passthrough hw-vfio-pci-quirks-Fix-broken-legacy-IGD.patch - The latest gcc10 available in Factory has the fix for the issue this patch was created to avoid, so drop it build-Work-around-gcc10-bug-by-not-using.patch - Switch to upstream versions of some patches we carry add-enum-cast-to-avoid-gcc10-warning.patch -> golan-Add-explicit-type-casts-for-nodnic.patch Be-explicit-about-fcommon-compiler-direc.patch -> build-Be-explicit-about-fcommon-compiler.patch Do-not-apply-WORKAROUND_CFLAGS-for-host-.patch -> build-Do-not-apply-WORKAROUND_CFLAGS-for.patch Fix-s-directive-argument-is-null-error.patch -> build-Fix-s-directive-argument-is-null-e.patch Workaround-compilation-error-with-gcc-9..patch -> build-Workaround-compilation-error-with-.patch work-around-gcc10-problem-with-zero-leng.patch -> intel-Avoid-spurious-compiler-warning-on.patch - Fix vgabios issue for cirrus graphics emulation, which effectively downgraded it to standard VGA behavior vga-fix-cirrus-bios.patch - Fix OOB access possibility in ES1370 audio device emulation (CVE-2020-13361 bsc#1172384) es1370-check-total-frame-count-against-c.patch OBS-URL: https://build.opensuse.org/request/show/822154 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=553
55 lines
2.2 KiB
Diff
55 lines
2.2 KiB
Diff
From: Valentine Barshak <gvaxon@gmail.com>
|
|
Date: Mon, 22 Jul 2019 10:47:50 +0100
|
|
Subject: [build] Workaround compilation error with gcc 9.1
|
|
|
|
Git-commit: 1dd56dbd11082fb622c2ed21cfaced4f47d798a6
|
|
References: bsc#1121464
|
|
|
|
Compiling with gcc 9.1 generates lots of "taking address of packed
|
|
member of ... may result in an unaligned pointer value" warnings.
|
|
|
|
Some of these warnings are genuine, and indicate correctly that parts
|
|
of iPXE currently require the CPU (or runtime environment) to support
|
|
unaligned accesses. For example: the TCP/IP receive data path will
|
|
attempt to access 32-bit fields that may not be aligned to a 32-bit
|
|
boundary.
|
|
|
|
Other warnings are either spurious (such as when the pointer is to a
|
|
variable-length byte array, which can have no alignment requirement
|
|
anyway) or unhelpful (such as when the pointer is used solely to
|
|
provide a debug colour value for the DBGC() macro).
|
|
|
|
There appears to be no easy way to silence the spurious warnings.
|
|
Since the ability to perform unaligned accesses is already a
|
|
requirement for iPXE, work around the problem by silencing this class
|
|
of warnings.
|
|
|
|
Signed-off-by: Valentine Barshak <gvaxon@gmail.com>
|
|
Modified-by: Michael Brown <mcb30@ipxe.org>
|
|
Signed-off-by: Michael Brown <mcb30@ipxe.org>
|
|
Signed-off-by: Bruce Rogers <brogers@suse.com>
|
|
---
|
|
src/Makefile.housekeeping | 9 +++++++++
|
|
1 file changed, 9 insertions(+)
|
|
|
|
diff --git a/roms/ipxe/src/Makefile.housekeeping b/roms/ipxe/src/Makefile.housekeeping
|
|
index f8334921b8b93cbd03f0a0de9910..4b09e81f0b1eb82e79f6af11986d 100644
|
|
--- a/roms/ipxe/src/Makefile.housekeeping
|
|
+++ b/roms/ipxe/src/Makefile.housekeeping
|
|
@@ -185,6 +185,15 @@ WNST_TEST = $(CC) -Wstringop-truncation -x c -c /dev/null -o /dev/null \
|
|
>/dev/null 2>&1
|
|
WNST_FLAGS := $(shell $(WNST_TEST) && $(ECHO) '-Wno-stringop-truncation')
|
|
WORKAROUND_CFLAGS += $(WNST_FLAGS)
|
|
+
|
|
+# gcc 9.1 generates warnings for taking address of packed member which
|
|
+# may result in an unaligned pointer value. Inhibit the warnings.
|
|
+#
|
|
+WNAPM_TEST = $(CC) -Wno-address-of-packed-member -x c -c /dev/null \
|
|
+ -o /dev/null >/dev/null 2>&1
|
|
+WNAPM_FLAGS := $(shell $(WNAPM_TEST) && \
|
|
+ $(ECHO) '-Wno-address-of-packed-member')
|
|
+WORKAROUND_CFLAGS += $(WNAPM_FLAGS)
|
|
endif
|
|
|
|
# Some versions of gas choke on division operators, treating them as
|