Hello again,

it seams that the compiler use an old version elf2flt. So I start to try to compile the version from http://cvs.uclinux.org/cgi-bin/cvsweb.cgi/elf2flt/. After downloading the files I read the README. Here is described that I need the libbfd.a and libiberty.a from the toolchain. But Sourcery only contains the libbfd.a. The other file is not in the directory-tree of Sourcery. I found an alternative in /usr/local/arm-linux/lib. But when I try to use it, I get some error messages about relocations:
They all looks the same way:

------------------8<---------------------8<-----------------------8<---------
/usr/bin/ld: /usr/local/arm-linux/lib/libiberty.a(cplus-dem.o): Relocations in generic ELF (EM: 40)
------------------>8--------------------->8----------------------->8---------

I also found them in /usr/local/arm-linux/be, ./soft-float and ../soft-float. But also this files generate
the same errors. So I think that this files are not the right one.

Is there a way to compile elf2flt for CodeSourcery arm-uclinuxeabi-?

Thanks and regards

Frank
--- Begin Message ---
Hello all,

I have find out that my kernel doesn't execute any elf-file. I got an image with from a friend in bFLT format which run on my system. So the kernel hasn't included any support for ELF, but every executable image is compiled as ELF.

So I read a lot about bFLT and using arm-uclinuxeabi- compiler from CodeSourcery seams to be the best choice instead of arm-none-linux-gnueabi-, because it's also contains the elf2flt executables. But when I try to compile the distribution I get the
following errors:
------------------8<---------------------8<-----------------------8<---------
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
==========
/home/quotrader/CodeSourcery/Sourcery_G++_Lite/arm-uclinuxeabi/bin/elf2flt: error: reloc type R_ARM_GOTPC is not supported /home/quotrader/CodeSourcery/Sourcery_G++_Lite/arm-uclinuxeabi/bin/elf2flt: error: reloc type R_ARM_GOT32 is not supported /home/quotrader/CodeSourcery/Sourcery_G++_Lite/arm-uclinuxeabi/bin/elf2flt: error: reloc type R_ARM_GOT32 is not supported /home/quotrader/CodeSourcery/Sourcery_G++_Lite/arm-uclinuxeabi/bin/elf2flt: error: reloc type R_ARM_ABS32 is not supported for PIC
....
/home/quotrader/CodeSourcery/Sourcery_G++_Lite/arm-uclinuxeabi/bin/elf2flt: error: reloc type R_ARM_GOTOFF32 is not supported /home/quotrader/CodeSourcery/Sourcery_G++_Lite/arm-uclinuxeabi/bin/elf2flt: error: reloc type R_ARM_GOT32 is not supported /home/quotrader/CodeSourcery/Sourcery_G++_Lite/arm-uclinuxeabi/bin/elf2flt: error: 247 bad relocs
------------------>8--------------------->8----------------------->8---------

When I understand this right, this relocations are ARM specific and not supported by elf2flt. Is there any workaround or maybe a new version
available?
An other way is to activate the ELF support for the kernel, but I couldn't find this switches in the config-files. Did someone know which switches has
to set, that the kernel also support ELF-images?

Thanks and regards

Frank


--- End Message ---
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to