[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 7/7] s390/bios: build with -fdelete-null-pointer-chec
From: |
Christian Borntraeger |
Subject: |
[Qemu-devel] [PULL 7/7] s390/bios: build with -fdelete-null-pointer-checks |
Date: |
Mon, 15 Jun 2015 14:00:31 +0200 |
From: Aurelien Jarno <address@hidden>
Starting with version 4.9, GCC assumes it can't safely dereference null
pointers, and uses this for some optimizations. On s390, the lowcore
memory is located at address 0, so this assumption is wrong and breaks
the s390-ccw firmware. Pass -fdelete-null-pointer-checks to avoid that.
Cc: Cornelia Huck <address@hidden>
Cc: Christian Borntraeger <address@hidden>
Cc: Alexander Graf <address@hidden>
Signed-off-by: Aurelien Jarno <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Christian Borntraeger <address@hidden>
---
pc-bios/s390-ccw/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc-bios/s390-ccw/Makefile b/pc-bios/s390-ccw/Makefile
index 009bb8d..746603a 100644
--- a/pc-bios/s390-ccw/Makefile
+++ b/pc-bios/s390-ccw/Makefile
@@ -10,7 +10,7 @@ $(call set-vpath, $(SRC_PATH)/pc-bios/s390-ccw)
.PHONY : all clean build-all
OBJECTS = start.o main.o bootmap.o sclp-ascii.o virtio.o
-CFLAGS += -fPIE -fno-stack-protector -ffreestanding
+CFLAGS += -fPIE -fno-stack-protector -ffreestanding
-fno-delete-null-pointer-checks
LDFLAGS += -Wl,-pie -nostdlib
build-all: s390-ccw.img
--
2.3.0
- [Qemu-devel] [PULL 0/7] s390x/kvm/bios/watchdog, Christian Borntraeger, 2015/06/15
- [Qemu-devel] [PULL 4/7] s390x/watchdog: diag288 migration support, Christian Borntraeger, 2015/06/15
- [Qemu-devel] [PULL 1/7] watchdog: change option wording to allow for more watchdogs, Christian Borntraeger, 2015/06/15
- [Qemu-devel] [PULL 7/7] s390/bios: build with -fdelete-null-pointer-checks,
Christian Borntraeger <=
- [Qemu-devel] [PULL 6/7] watchdog: Add new Virtual Watchdog action INJECT-NMI, Christian Borntraeger, 2015/06/15
- [Qemu-devel] [PULL 2/7] s390x/watchdog: introduce diag288 watchdog device, Christian Borntraeger, 2015/06/15
- [Qemu-devel] [PULL 5/7] nmi: Implement inject_nmi() for non-monitor context use, Christian Borntraeger, 2015/06/15
- [Qemu-devel] [PULL 3/7] s390x/kvm: diag288 instruction interception and handling, Christian Borntraeger, 2015/06/15
- Re: [Qemu-devel] [PULL 0/7] s390x/kvm/bios/watchdog, Peter Maydell, 2015/06/15