[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[qemu-s390x] [PATCH] pc-bios/s390-ccw: Optimize the s390-ccw bios for si
From: |
Thomas Huth |
Subject: |
[qemu-s390x] [PATCH] pc-bios/s390-ccw: Optimize the s390-ccw bios for size |
Date: |
Thu, 14 Jun 2018 10:48:28 +0200 |
Since we're storing the firmware blobs in the QEMU git repository, it
would be nice if the blobs would be a little bit smaller. By using -Os
and -fno-asynchronous-unwind-tables the size of the s390-ccw.img can be
decreased by ca. 4kB, and the size of s390-netboot.img even by ca. 45kB.
The change of speed of the firmware should not really matter compared to
a binary that has been compiled with -O2 since the firmware still starts
very fast.
Signed-off-by: Thomas Huth <address@hidden>
---
pc-bios/s390-ccw/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/pc-bios/s390-ccw/Makefile b/pc-bios/s390-ccw/Makefile
index 439e3cc..f22a5ca 100644
--- a/pc-bios/s390-ccw/Makefile
+++ b/pc-bios/s390-ccw/Makefile
@@ -13,6 +13,7 @@ OBJECTS = start.o main.o bootmap.o jump2ipl.o sclp.o menu.o \
virtio.o virtio-scsi.o virtio-blkdev.o libc.o
QEMU_CFLAGS := $(filter -W%, $(QEMU_CFLAGS))
+QEMU_CFLAGS += -Os -fno-asynchronous-unwind-tables
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)
--
1.8.3.1
- [qemu-s390x] [PATCH] pc-bios/s390-ccw: Optimize the s390-ccw bios for size,
Thomas Huth <=