[coreboot-gerrit] Patch set updated for coreboot: src/arch/x86: Link the compiler runtime library in the bootblock
Alexandru Gagniuc (mr.nuke.me@gmail.com)
gerrit at coreboot.org
Mon Jan 25 21:01:29 CET 2016
Alexandru Gagniuc (mr.nuke.me at gmail.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/12870
-gerrit
commit a70008438b063a4f3b6a817ae370ed34aa236450
Author: Alexandru Gagniuc <alexandrux.gagniuc at 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 at 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
More information about the coreboot-gerrit
mailing list