Files
openbios/libgcc/build.xml
Blue Swirl e1337d80a8 ppc: fix build with newer GCCs
New GCCs (for example 4.6.0) needed a few more functions to
libgcc. Without the functions, there were a lot of linker errors:
  LINK  openbios-qemu.elf
libqemu.a(ofmem.o): In function `hash_page':
/src/openbios-devel/obj-ppc/../arch/ppc/qemu/ofmem.c:353: undefined reference to `_restgpr_25_x'
libqemu.a(ofmem.o): In function `ea_to_phys':
/src/openbios-devel/obj-ppc/../arch/ppc/qemu/ofmem.c:231: undefined reference to `_restgpr_30_x'
etc.

Copy the needed functions from Linux.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@885 f158a5a8-5612-0410-a976-696ce0be7e32
2010-10-03 19:18:28 +00:00

25 lines
717 B
XML

<build>
<library name="gcc" type="static" target="target">
<object source="ashldi3.c"/>
<object source="ashrdi3.c"/>
<object source="__lshrdi3.c"/>
<object source="__divdi3.c"/>
<object source="__udivdi3.c"/>
<object source="__udivmoddi4.c"/>
<object source="__umoddi3.c"/>
<object source="crtsavres.S" condition="PPC"/>
<!-- CONDITION="CONFIG_64BITS" -->
<object source="__divti3.c" condition="SPARC64"/>
<object source="__udivti3.c" condition="SPARC64"/>
<object source="__udivmodti4.c" condition="SPARC64"/>
<object source="__umodti3.c" condition="SPARC64"/>
<object source="multi3.c" condition="SPARC64"/>
<object source="__negti2.c" condition="SPARC64"/>
</library>
</build>