[ELDK] help: i got a core dumped while building u-boot-2011.06 use eldk5.0 for armv4t.

liujun saleslhzk at 126.com
Sat Oct 8 10:40:04 CEST 2011


hi, all

i got a core dumped while building u-boot-2011.06 for s3c2440a chip 

which is arch v4t use eldk5.0 with USE_PRIVATE_LIBGCC=yes.

building is ok without USE_PRIVATE_LIBGCC=yes but only got a v5t 

elf u-boot file.

 

my building is on centos 6.0, all env variable setting is done as following:

 

export PREFIX=/opt/eldk-5.0/armv5te/sysroots/i686-oesdk-linux/usr/bin

export TARGET=arm-linux-gnueabi

export PATH=$PREFIX/armv5te-linux-gnueabi:$PATH

export CROSS_COMPILE=${TARGET}-

 

building command is following by denx faq ¡°GCC generates illegal opcodes
for ARMv4T systems¡±

make distclean

USE_PRIVATE_LIBGCC=yes make AS2440_config

USE_PRIVATE_LIBGCC=yes make

 

                            here is my building error message:

#---------------------------------------------------------------------------
--------------------------------------------------------

home/lianhua/u-boot-2011.06/fs/yaffs2/yaffscfg.c:185: undefined reference to
`__aeabi_uldivmod'

 

                            arm-linux-gnueabi-ld: BFD (GNU Binutils) 2.21
assertion fail /opt/poky/build/eld

k-2011-05-20-5cde06e-armv5te/tmp/work/i686-nativesdk-oesdk-linux/binutils-cr
oss-

canadian-arm-2.21-r0/binutils-2.21/bfd/elf32-arm.c:12472

/bin/sh: line 1: 18194 Segmentation fault      (core dumped)

#---------------------------------------------------------------------------
--------------------------------------------------------

 

                            i made u-boot without USE_PRIVATE_LIBGCC again
before click send button for this mail, everything

                            is ok, no error message, and check again

 

                            ${CROSS_COMPILE}readelf -a u-boot > u-boot.txt

 

                            at end of u-boot.txt, there are¡­

 

Attribute Section: aeabi

File Attributes

  Tag_CPU_name: "5TE"

  Tag_CPU_arch: v5TE

  Tag_ARM_ISA_use: Yes

  Tag_THUMB_ISA_use: Thumb-1

  Tag_ABI_PCS_wchar_t: 4

  Tag_ABI_FP_denormal: Needed

  Tag_ABI_FP_exceptions: Needed

  Tag_ABI_FP_number_model: IEEE 754

  Tag_ABI_align_needed: 8-byte

  Tag_ABI_enum_size: int

  Tag_DIV_use: Not allowed

 

I think, ¡°USE_PRIVATE_LIBGCC=yes¡± get the __aeabi_uldivmod off libgcc, but
u-boot source maybe still

call it, I¡¯m not sure.

 

ps

just see it stdout message when making, it¡¯s printed out by making without
USE_PRIVATE_LIBGCC :

#---------------------------------------------------------------------------
--------------------------------------------------------

arm-linux-gnueabi-gcc  -g  -Os   -fno-common -ffixed-r8 -msoft-float
-D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x0 

-I/home/lianhua/u-boot-2011.06/include -fno-builtin -ffreestanding -nostdinc
-isystem /opt/eldk-5.0/armv5te/sysroots/

i686-oesdk-linux/usr/lib/armv5te-linux-gnueabi/gcc/arm-linux-gnueabi/4.5.1/i
nclude -pipe  -DCONFIG_ARM -D__ARM__ -marm 

 -mabi=aapcs-linux -mno-thumb-interwork -march=armv4 -Wall
-Wstrict-prototypes -fno-stack-protector   -o fat.o fat.c ¨Cc

#---------------------------------------------------------------------------
--------------------------------------------------------

 

gcc compiling seem like using arch v4.

 

then, I make with USE_PRIVATE_LIBGCC=yes again, I got a core dumped again.

 

Best Regards,

liujun

 

 

 

 

 



More information about the eldk mailing list