]> git.dujemihanovic.xyz Git - u-boot.git/commit
microblaze: Add muldi3.c which contains routines for _muldi3
authorDavid Holsgrove <david.holsgrove@xilinx.com>
Tue, 6 Nov 2012 13:01:24 +0000 (23:01 +1000)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 4 Feb 2013 11:07:09 +0000 (12:07 +0100)
commit2281ba5172b2855ed3af2251832332b3e9e16f6c
tree45aec64f391f5be2ac901e14fc7ad4603a611a49
parent7cde9f35d6753d17348512e944f0fe5c31af0acf
microblaze: Add muldi3.c which contains routines for _muldi3

Referenced arch/blackfin/lib/muldi3.c and the linux kernel.
Resolves issue seen when building u-boot for HW_MUL=0;

PLATFORM_CPPFLAGS += -mxl-soft-mul
PLATFORM_CPPFLAGS += -mno-xl-multiply-high

which resulted in error while linking to libgcc.a without mul hw (bs / m);

libgcc.a(_muldi3.o): In function `__muldi3':
.... src/gcc-4.6.2/libgcc/libgcc2.c:550: undefined reference to `_GLOBAL_OFFSET_TABLE_'

This link failure would not occur if we used gcc instead of ld directly, as
gcc will correctly use the crt's to resolve this link.

Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/lib/Makefile
arch/microblaze/lib/muldi3.c [new file with mode: 0644]