summaryrefslogtreecommitdiffstats
path: root/arch/nios2/lib/Makefile
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2010-05-15 06:00:05 +0800
committerScott McNutt <smcnutt@psyent.com>2010-05-28 10:56:03 -0400
commit8d52ea6db484c689a75ef8a36a4e525753b8f078 (patch)
tree167f6c45a02eb0a3aa570ff8b215c48bb4a48f96 /arch/nios2/lib/Makefile
parent0df01fd3d71481b5cc7aeea6a741b9fc3be15178 (diff)
downloadblackbird-obmc-uboot-8d52ea6db484c689a75ef8a36a4e525753b8f078.tar.gz
blackbird-obmc-uboot-8d52ea6db484c689a75ef8a36a4e525753b8f078.zip
nios2: fix div64 issue for gcc4
This patch fixes the run-time error on div64 when built with gcc4, which was reported by jhwu0625 on nios forum. It merges math support from libgcc of gcc4. This patch is copied from nios2-linux. It works with both gcc3 and gcc4. The old mult.c, divmod.c and math.h are removed. Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Signed-off-by: Scott McNutt <smcnutt@psyent.com>
Diffstat (limited to 'arch/nios2/lib/Makefile')
-rw-r--r--arch/nios2/lib/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/nios2/lib/Makefile b/arch/nios2/lib/Makefile
index b69bc38850..92320c5e46 100644
--- a/arch/nios2/lib/Makefile
+++ b/arch/nios2/lib/Makefile
@@ -29,8 +29,7 @@ SOBJS-y += cache.o
COBJS-y += board.o
COBJS-y += bootm.o
-COBJS-y += divmod.o
-COBJS-y += mult.o
+COBJS-y += libgcc.o
COBJS-y += time.o
SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
OpenPOWER on IntegriCloud