Alexandru Gagniuc (mr.nuke.me@gmail.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/12870
-gerrit
commit c4173406518eaf68bf8544d7863672b795fad754 Author: Alexandru Gagniuc alexandrux.gagniuc@intel.com Date: Tue Oct 6 16:35:39 2015 -0700
OBSOLETED BY https://review.coreboot.org/13069
src/arch/x86: Link the compiler runtime library in the bootblock
At least on GCC __udivdi3 and __umoddi3 are needed by the console code. They are provided by the compiler runtime library.
Change-Id: I78bbea425c33d7eebaf829d58d763b7a1c6e997c Signed-off-by: Alexandru Gagniuc alexandrux.gagniuc@intel.com --- src/arch/x86/Makefile.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/arch/x86/Makefile.inc b/src/arch/x86/Makefile.inc index 86290ab..75767cb 100644 --- a/src/arch/x86/Makefile.inc +++ b/src/arch/x86/Makefile.inc @@ -163,8 +163,12 @@ $(objgenerated)/bootblock.inc: $(src)/arch/x86/$(subst ",,$(CONFIG_BOOTBLOCK_SOU # $(obj)/arch/x86/bootblock.bootblock.ld is part of $(bootblock-objs) $(objcbfs)/bootblock.debug: $$(bootblock-objs) @printf " LINK $(subst $(obj)/,,$(@))\n" - $(LD_bootblock) $(LDFLAGS_bootblock) -o $@ -L$(obj) \ - $(filter-out %.ld,$(bootblock-objs)) \ + $(LD_bootblock) $(LDFLAGS_bootblock) -static \ + -o $@ $(COMPILER_RT_FLAGS_bootblock) -L$(obj) \ + -whole-archive --start-group \ + $(filter %.o,$(bootblock-objs)) \ + --no-whole-archive $(COMPILER_RT_bootblock) \ + --end-group \ -T $(obj)/arch/x86/bootblock.bootblock.ld
endif # C_ENVIRONMENT_BOOTBLOCK