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 ed2c73fc9480731d087ff185b53564c52b69bf44 Author: Alexandru Gagniuc alexandrux.gagniuc@intel.com Date: Tue Oct 6 16:35:39 2015 -0700
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 f372645..c940f44 100644 --- a/src/arch/x86/Makefile.inc +++ b/src/arch/x86/Makefile.inc @@ -112,8 +112,12 @@ endif # $(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