From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4S24-0006Rw-1R for qemu-devel@nongnu.org; Mon, 15 Jun 2015 06:54:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4S1x-0005O0-Rx for qemu-devel@nongnu.org; Mon, 15 Jun 2015 06:54:23 -0400 Received: from e06smtp17.uk.ibm.com ([195.75.94.113]:50698) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4S1x-0005NM-Hn for qemu-devel@nongnu.org; Mon, 15 Jun 2015 06:54:17 -0400 Received: from /spool/local by e06smtp17.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 15 Jun 2015 11:54:15 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 9802617D8056 for ; Mon, 15 Jun 2015 11:55:17 +0100 (BST) Received: from d06av05.portsmouth.uk.ibm.com (d06av05.portsmouth.uk.ibm.com [9.149.37.229]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t5FAsDWJ24576124 for ; Mon, 15 Jun 2015 10:54:13 GMT Received: from d06av05.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t5FAsCl0020734 for ; Mon, 15 Jun 2015 04:54:13 -0600 Message-ID: <557EAED4.8080209@de.ibm.com> Date: Mon, 15 Jun 2015 12:54:12 +0200 From: Christian Borntraeger MIME-Version: 1.0 References: <1434363843-14576-1-git-send-email-aurelien@aurel32.net> In-Reply-To: <1434363843-14576-1-git-send-email-aurelien@aurel32.net> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] s390/bios: build with -fdelete-null-pointer-checks List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno , qemu-devel@nongnu.org Cc: Cornelia Huck , Alexander Graf Am 15.06.2015 um 12:24 schrieb Aurelien Jarno: > 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 > Cc: Christian Borntraeger > Cc: Alexander Graf > Signed-off-by: Aurelien Jarno > --- > 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 > applied thanks.