From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrice Vilchez Date: Fri, 06 Jul 2007 16:15:39 +0200 Subject: [U-Boot-Users] EABI problem In-Reply-To: <468E4B70.8030907@balister.org> References: <000a01c7bfd1$af8c5c30$821ba8c0@Emea.Arm.com> <468E4797.5030604@rfo.atmel.com> <468E4B70.8030907@balister.org> Message-ID: <468E4E8B.2000107@rfo.atmel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Philip Balister a ?crit : > Patrice Vilchez wrote: >>> Which board? >>> >>> >> For an AT91SAM9263EK board. >> I am adding AT91 evaluation kits support to u-boot 1.2.0 and I >> did some tests which several EABI compiler : codesourcery , open >> embedded and buildroot. >> It seems when there is a 64 bits division the compiler refers to >> "_udivdi3" which is not implemented into "u-boot/lib_arm/" library >> and then try to link with libgcc from compiler : > > I am also using an EABI compiler (from openembedded) and see these > messages (among some other problems): > > /home/balister/oe/tmp/cross/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/libgcc.a(_dvmd_lnx.o): > In function `__div0': > /home/balister/oe/tmp/work/armv5te-angstrom-linux-gnueabi/gcc-cross-4.1.2-r4/gcc-4.1.2/gcc/config/arm/lib1funcs.asm:1001: > undefined reference to `raise' > /home/balister/oe/tmp/cross/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/libgcc.a(_divdi3.o):(.ARM.exidx+0x0): > undefined reference to `__aeabi_unwind_cpp_pr0' > /home/balister/oe/tmp/cross/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/libgcc.a(_udivdi3.o):(.ARM.exidx+0x0): > undefined reference to `__aeabi_unwind_cpp_pr0' > make: *** [u-boot] Error 1 > > Philip Are you compiling a file with a 64 bits division ? I my case it was driver/nand/nand_utils.c enabled by adding "CFG_CMD_NAND" to CONFIG_COMMANDS. Patrice.