2016-07-05 15:49 GMT+02:00 Roger Pau Monné roger.pau@citrix.com:
Hello,
I'm seeing the following issue when building SeaBIOS with gcc > 4.8:
(..)
This works fine when using gcc 4.8, but fails in the same way with gcc 5.4. The assembler version used is:
GNU assembler version 2.25.1 (x86_64-portbld-freebsd11.0) using BFD version (GNU Binutils) 2.25.1
What causes this issue seems to be the usage of the "-m16" gcc flag, which was introduced in gcc 4.9 AFAICT. The following workaround solves the issue, but I would like to know if anyone else has seen this with newer gcc versions, or if the gcc version from FreeBSD ports is broken.
Are you experiencing issues on hardware too? As in: coreboot.rom for the mainboard asus/f2a85-m built on FreeBSD 11.0-ALPHA5 r302302, without gcc installed from 'pkg', with the coreboot crossgcc toolchain will not boot.
Thanks, Roger.
diff --git a/Makefile b/Makefile index 4930b3a..19a1e7d 100644 --- a/Makefile +++ b/Makefile @@ -73,8 +73,7 @@ CFLAGSSEG := $(COMMONCFLAGS) -DMODESEGMENT=1 -fno-defer-pop \ $(call cc-option,$(CC),-fno-jump-tables,-DMANUAL_NO_JUMP_TABLE) \ $(call cc-option,$(CC),-fno-tree-switch-conversion,) CFLAGS32SEG := $(CFLAGSSEG) -DMODE16=0 -CFLAGS16 := $(CFLAGSSEG) -DMODE16=1 \
- $(call cc-option,$(CC),-m16,-Wa$(COMMA)src/code16gcc.s) \
+CFLAGS16 := $(CFLAGSSEG) -DMODE16=1 -Wa$(COMMA)src/code16gcc.s \ $(call cc-option,$(CC),--param large-stack-frame=4,-fno-inline)
# Run with "make V=1" to see the actual compile commands
SeaBIOS mailing list SeaBIOS@seabios.org https://www.coreboot.org/mailman/listinfo/seabios