Skip to contentSkip to conversation

Build fix for s390x

GIT PULL Applied Cornelia Huck 2 participants 3 messages Aug 16, 2016

lore
Share & tools
lore
#0 lore raw

The following changes since commit e5bfef86fe57fcf11cb761ac9a59006442f5de8a:

Merge remote-tracking branch 'remotes/sstabellini/tags/xen-20160812-tag-2' into staging (2016-08-15 19:04:51 +0100)

are available in the git repository at:

git://github.com/cohuck/qemu tags/s390x-20160816

for you to fetch changes up to c86c03cfd2c298f56e36cd08a054b90c83959cc1:

pc-bios/s390-ccw.img: Fix build (2016-08-16 08:52:02 +0200)

----------------------------------------------------------------
Build fix for the ccw bios (bios itself not rebuilt).

----------------------------------------------------------------

Christian Borntraeger (1):
pc-bios/s390-ccw.img: Fix build

 pc-bios/s390-ccw/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Signature · 1 line
2.9.2
#1 lore raw

[Qemu-devel] [PULL for-2.7 1/1] pc-bios/s390-ccw.img: Fix build

From: Christian Borntraeger <[email protected]>

Since
commit a9c87304b76d ("build-sys: fix building with make CFLAGS=.. argument")

pc-bios/s390-ccw.img build might fail with

--- snip ---
main.o: In function `virtio_setup':
qemu/pc-bios/s390-ccw/main.c:117: undefined reference to `__stack_chk_fail' --- snip ---

Changing the CFLAGS to QEMU_CFLAGS does the trick. We also need to add -fno-strict-aliasing as this was filtered out.

Message-Id: <[email protected]>

---
 pc-bios/s390-ccw/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
pc-bios/s390-ccw/Makefile +4 -2
index 4208cb4..0ab2538 100644
@@ -10,8 +10,10 @@ $(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 virtio-scsi.o
-CFLAGS += -fPIE -fno-stack-protector -ffreestanding -march=z900
-CFLAGS += -fno-delete-null-pointer-checks -msoft-float
+QEMU_CFLAGS := $(filter -W%, $(QEMU_CFLAGS))
+QEMU_CFLAGS += -ffreestanding -fno-delete-null-pointer-checks -msoft-float
+QEMU_CFLAGS += -march=z900 -fPIE -fno-strict-aliasing
+QEMU_CFLAGS += $(call cc-option, $(QEMU_CFLAGS), -fno-stack-protector)
 LDFLAGS += -Wl,-pie -nostdlib
 
 build-all: s390-ccw.img
Signature · 1 line
2.9.2
#2 lore raw
In reply to Cornelia Huck
Quoted 6 lines · Cornelia Huck

The following changes since commit e5bfef86fe57fcf11cb761ac9a59006442f5de8a:

Merge remote-tracking branch 'remotes/sstabellini/tags/xen-20160812-tag-2' into staging (2016-08-15 19:04:51 +0100)

are available in the git repository at:

Quoted 9 lines

git://github.com/cohuck/qemu tags/s390x-20160816

for you to fetch changes up to c86c03cfd2c298f56e36cd08a054b90c83959cc1:

pc-bios/s390-ccw.img: Fix build (2016-08-16 08:52:02 +0200)

----------------------------------------------------------------
Build fix for the ccw bios (bios itself not rebuilt).

Applied, thanks.

-- PMM