[arm-gnu] arm-uclinuxeabi-elf2flt errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[arm-gnu] arm-uclinuxeabi-elf2flt errors



Hi all,

I'm using CodeSourcery arm-uclinuxeabi 2010q1 version 4.4.1 to compile uClinux for a ARM Cortex M4. The kernel itself run fine. But when the linker tries to make a flat-image
from an elf-file I get a couple of errors like this:
Trying libraries: crypt m
Failed: -Wl,--start-group -lcrypt -lm -Wl,--end-group
Output of:
ucfront-gcc arm-uclinuxeabi-gcc -O2 -g -fomit-frame-pointer -pipe -mfloat-abi=softfp
-mfpu=vfpv3xd -fno-common -fno-builtin -Wall -DEMBED -D__PIC__ -fpic
-msingle-pic-base -Dlinux -D__linux__ -Dunix -D__uClinux__ -Wall -Wshadow
-Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter
-Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Os -fno-builtin-strlen
-finline-limit=0 -fomit-frame-pointer -ffunction-sections -fdata-sections
-fno-guess-branch-probability -funsigned-char -static-libgcc -falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1 -Wdeclaration-after-statement -Wno-pointer-sign -mfloat-abi=softfp -mfpu=vfpv3xd -D__PIC__ -fpic -msingle-pic-base -mfloat-abi=softfp -mfpu=vfpv3xd -D__PIC__ -fpic -msingle-pic-base -static -o busybox_unstripped -Wl,--sort-common -Wl,--start-group applets/built-in.o archival/lib.a archival/libunarchive/lib.a console-tools/lib.a coreutils/lib.a coreutils/libcoreutils/lib.a debianutils/lib.a e2fsprogs/lib.a editors/lib.a findutils/lib.a init/lib.a libbb/lib.a libpwdgrp/lib.a loginutils/lib.a miscutils/lib.a modutils/lib.a networking/lib.a networking/libiproute/lib.a networking/udhcp/lib.a printutils/lib.a procps/lib.a runit/lib.a selinux/lib.a shell/lib.a sysklogd/lib.a util-linux/lib.a util-linux/volume_id/lib.a archival/built-in.o archival/libunarchive/built-in.o console-tools/built-in.o coreutils/built-in.o coreutils/libcoreutils/built-in.o debianutils/built-in.o e2fsprogs/built-in.o editors/built-in.o findutils/built-in.o init/built-in.o libbb/built-in.o libpwdgrp/built-in.o loginutils/built-in.o miscutils/built-in.o modutils/built-in.o networking/built-in.o networking/libiproute/built-in.o networking/udhcp/built-in.o printutils/built-in.o procps/built-in.o runit/built-in.o selinux/built-in.o shell/built-in.o sysklogd/built-in.o util-linux/built-in.o util-linux/volume_id/built-in.o -Wl,--end-group -Wl,--start-group -lcrypt -lm -Wl,--end-group
==========
/hom.../arm-uclinuxeabi/bin/elf2flt: error: reloc type R_ARM_GOT32 is not supported /hom.../arm-uclinuxeabi/bin/elf2flt: error: reloc type R_ARM_GOT32 is not supported /hom.../arm-uclinuxeabi/bin/elf2flt: error: reloc type R_ARM_GOT32 is not supported /hom.../arm-uclinuxeabi/bin/elf2flt: error: reloc type R_ARM_GOT32 is not supported /hom.../arm-uclinuxeabi/bin/elf2flt: error: reloc type R_ARM_GOTOFF32 is not supported /hom.../arm-uclinuxeabi/bin/elf2flt: error: reloc type R_ARM_GOT32 is not supported
/hom.../arm-uclinuxeabi/bin/elf2flt: error: 247 bad relocs


The problem is relative clear: The arm-uclinuxeabi-elf2flt don't understand the reloc's which are generated. So I downloaded the source for elf2flt from http://cvs.uclinux.org/cgi-bin/cvsweb.cgi/elf2flt and tried to compile them. But without success, the library (libiberty.a) needed to compile it is not in the toolchain. The second one was in the directory .../arm-uclinuxeabi/lib/lib/libbfd.a.

So is there any idea where to get the missing file? Or howto get in an other way an elf2flt, which
can handle these reloc types?

thanks and regards

Frank