From 5db685fedfe7f291719c90088bbf7618b31f3da6 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Sat, 26 Sep 2009 15:52:05 +0000 Subject: * drop libgcc from coreboot_apc.o, not needed. * wrap libgcc calls into regparm(0) variants so that coreboot can be compiled with other regparm values Signed-off-by: Stefan Reinauer Acked-by: Carl-Daniel Hailfinger git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4679 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/config/Config.lb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/config/Config.lb') diff --git a/src/config/Config.lb b/src/config/Config.lb index dcf6c65188..061c0b21a8 100644 --- a/src/config/Config.lb +++ b/src/config/Config.lb @@ -47,7 +47,7 @@ end makerule coreboot_ram.o depends "src/arch/$(CONFIG_ARCH)/lib/c_start.o $(DRIVER) coreboot.a $(LIBGCC_FILE_NAME)" - action "$(CC) $(DISTRO_LFLAGS) -nostdlib -r -o $@ src/arch/$(CONFIG_ARCH)/lib/c_start.o $(DRIVER) -Wl,-\( coreboot.a $(LIBGCC_FILE_NAME) -Wl,-\)" + action "$(CC) $(DISTRO_LFLAGS) -nostdlib -r -o $@ src/arch/$(CONFIG_ARCH)/lib/c_start.o $(DRIVER) -Wl,--wrap,__divdi3 -Wl,--wrap,__udivdi3 -Wl,--wrap,__moddi3 -Wl,--wrap,__umoddi3 -Wl,-\( coreboot.a $(LIBGCC_FILE_NAME) -Wl,-\)" end makerule coreboot_ram @@ -89,7 +89,7 @@ if CONFIG_AP_CODE_IN_CAR end makerule coreboot_apc.o - depends "src/arch/$(CONFIG_ARCH)/lib/c_start.o coreboot_apc.a $(LIBGCC_FILE_NAME)" + depends "src/arch/$(CONFIG_ARCH)/lib/c_start.o coreboot_apc.a" action "$(CC) $(DISTRO_LFLAGS) -nostdlib -r -o $@ $^" end -- cgit v1.2.3