summaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2009-09-26 15:52:05 +0000
committerStefan Reinauer <stepan@openbios.org>2009-09-26 15:52:05 +0000
commit5db685fedfe7f291719c90088bbf7618b31f3da6 (patch)
tree8dfd874dd1cae317260fbcb9703c13503e7647b1 /src/config
parent19a99c6965511db908a56018c0bb586ce11ee157 (diff)
downloadcoreboot-5db685fedfe7f291719c90088bbf7618b31f3da6.tar.xz
* 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 <stepan@coresystems.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4679 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/config')
-rw-r--r--src/config/Config.lb4
1 files changed, 2 insertions, 2 deletions
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