[SLOF] [RFC PATCH] make.rules: Compile SLOF with -fno-asynchronous-unwind-tables

Thomas Huth thuth at redhat.com
Wed Jul 18 23:44:59 AEST 2018


With the new GCC 8, the asynchronous-unwind-tables are always enabled.
We don't need this for SLOF, so disable them to save 32 kiB in the
boot_rom.bin.

Signed-off-by: Thomas Huth <thuth at redhat.com>
---
 make.rules | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/make.rules b/make.rules
index 3067314..acbc8ab 100644
--- a/make.rules
+++ b/make.rules
@@ -73,8 +73,9 @@ RANLIB		?= $(CROSS)ranlib
 CPP		?= $(CROSS)cpp
 
 WARNFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -Wformat-security
-CFLAGS ?= -g -O2 -fno-builtin -ffreestanding -nostdinc -msoft-float -fno-strict-aliasing \
-	  -mno-altivec -mabi=no-altivec -fno-stack-protector $(WARNFLAGS)
+CFLAGS ?= -g -O2 -fno-builtin -ffreestanding -nostdinc -msoft-float \
+	  -fno-strict-aliasing -mno-altivec -mabi=no-altivec \
+	  -fno-stack-protector -fno-asynchronous-unwind-tables $(WARNFLAGS)
 
 export CC AS LD CLEAN OBJCOPY OBJDUMP STRIP AR RANLIB CFLAGS
 
-- 
1.8.3.1



More information about the SLOF mailing list