[uClinux-dev] strange behaviour of gnu-linker ld
Bob Brusa
bob.brusa at gmail.com
Fri Feb 1 04:28:34 EST 2008
Hi all out there,
I am puzzeled by a strange behaviour of the gnu-linker ld.
The ld-command with option -l gcc should - according to the documentation
- look for the file libgcc.a in the LIBRARY_PATH. And the file is
there as the echo and ls-commands show, but ld searches (where?) for a
file lgcc. :(
The output is as follows:
--------------------------------------------------------------
rwb at debi28:~/wso/helloworld$ make
echo LIBRARY_PATH is /usr/local/lib/gcc/m68k-uclinux/4.1.1/m528x
LIBRARY_PATH is /usr/local/lib/gcc/m68k-uclinux/4.1.1/m528x
ls /usr/local/lib/gcc/m68k-uclinux/4.1.1/m528x
libgcc.a libgcov.a mid-shared-library msep-data
/usr/local/bin/m68k-elf-ld -nostdlib -T COBRA5282-ram.ld -M -o
helloworld.elf main.o crt0_ram.o -l gcc > helloworld.map
/usr/local/bin/m68k-elf-ld.real: cannot find -lgcc
make: *** [helloworld.elf] Fehler 1
---------------------------------------------------------------
I do not understand what's going on here. Any advice or remedy?
Regards Bob
PS: I had posted this problem also on coldfire at wildrice.com, but got no
answer. I admit, the question is not really coldfire-specific. But does
this explain the silence?
--
Bob Brusa bob.brusa at gmail.com
Chapfwiesenstr. 14 ph: +4144 926 74 74
CH-8712 Stäfa fx: +4144 926 73 34
More information about the uClinux-dev
mailing list