All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Pietrek <maillist@fsforth.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] U-Boot with gcc-3.3.2 and ARM926EJS Targets fails due to __udiv0
Date: Tue, 27 Jan 2004 15:24:33 +0100	[thread overview]
Message-ID: <200401271524.33646.maillist@fsforth.de> (raw)

Hi folks,

I'm currently porting U-Boot 1.0.0 to a NetSilicon NS9750 (ARM926EJS core). 
This port is partly derived from board/omap1610inn. The compiler is 
gcc-3.3.2, taken from the uClibc toolchain.

For my target the compiler is using his internal libgcc.a:__div0 routine which 
of course fails (it's an SWI instruction). But compiling U-Boot for an 
smdk2410 platform with the same compiler uses the correct U-Boot's own __div0 
code. I can't see any relevant differences in both build lines.

Can anyone help me? And is it really necessary to include libgcc.a?

The build line for the NS9750:
========================
UNDEF_SYM=`arm-linux-objdump -x board/ns9750dev/libns9750dev.a 
cpu/arm926ejs/libarm926ejs.a lib_arm/libarm.a fs/jffs2/libjffs2.a 
fs/fdos/libfdos.a fs/fat/libfat.a net/libnet.a disk/libdisk.a rtc/librtc.a 
dtt/libdtt.a drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a 
post/cpu/libcpu.a common/libcommon.a lib_generic/libgeneric.a |sed  -n -e 
's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
        arm-linux-ld -Bstatic -T 
/targets/ewp/LxMOD/build/apps/u-boot-1.0.0/board/ns9750dev/u-boot.lds -Ttext 
0x00F80000  $UNDEF_SYM cpu/arm926ejs/start.o \
                --start-group board/ns9750dev/libns9750dev.a 
cpu/arm926ejs/libarm926ejs.a lib_arm/libarm.a fs/jffs2/libjffs2.a 
fs/fdos/libfdos.a fs/fat/libfat.a net/libnet.a disk/libdisk.a rtc/librtc.a 
dtt/libdtt.a drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a 
post/cpu/libcpu.a common/libcommon.a lib_generic/libgeneric.a -L 
/usr/local/LxNETES-3/arm-linux/lib/gcc-lib/arm-linux/3.3.2 -lgcc --end-group 
\
                -Map u-boot.map -o u-boot
========================

The relevant entry in u-boot.map for __div0:


===========================
/usr/local/LxNETES-3/arm-linux/lib/gcc-lib/arm-linux/3.3.2/libgcc.a(_udivsi3.o)
                              drivers/libdrivers.a(serial_ns9750.o) 
(__udivsi3)
/
Compilation
============================


The build line for SMDK2410

=======================-
UNDEF_SYM=`arm-linux-objdump -x board/smdk2410/libsmdk2410.a 
cpu/arm920t/libarm920t.a lib_arm/libarm.a fs/jffs2/libjffs2.a 
fs/fdos/libfdos.a fs/fat/libfat.a net/libnet.a disk/libdisk.a rtc/librtc.a 
dtt/libdtt.a drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a 
post/cpu/libcpu.a common/libcommon.a lib_generic/libgeneric.a |sed  -n -e 
's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
        arm-linux-ld -Bstatic -T 
/targets/ewp/LxMOD/build/apps/u-boot.smdk/board/smdk2410/u-boot.lds -Ttext 
0x33F80000  $UNDEF_SYM cpu/arm920t/start.o \
                --start-group board/smdk2410/libsmdk2410.a 
cpu/arm920t/libarm920t.a lib_arm/libarm.a fs/jffs2/libjffs2.a 
fs/fdos/libfdos.a fs/fat/libfat.a net/libnet.a disk/libdisk.a rtc/librtc.a 
dtt/libdtt.a drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a 
post/cpu/libcpu.a common/libcommon.a lib_generic/libgeneric.a -L 
/usr/local/LxNETES-3/arm-linux/lib/gcc-lib/arm-linux/3.3.2 -lgcc --end-group 
\
                -Map u-boot.map -o u-boot
===================

The relevant entry in u-boot.map for __div0:

====================
lib_arm/libarm.a(_udivsi3.o)  cpu/arm920t/libarm920t.a(speed.o) (__udivsi3)

-- 
Markus Pietrek
FS Forth-Systeme GmbH
Phone: +49 (7667) 908 145,  FAX +49 (7667) 908 221

             reply	other threads:[~2004-01-27 14:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-27 14:24 Markus Pietrek [this message]
2004-01-28 10:37 ` [U-Boot-Users] U-Boot with gcc-3.3.2 and ARM926EJS Targets fails due to __udi Anders Larsen
2004-01-28 16:55   ` Wolfgang Denk
2004-01-29  8:37   ` Markus Pietrek
2004-02-01 18:27     ` Robert Schwebel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200401271524.33646.maillist@fsforth.de \
    --to=maillist@fsforth.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.