Linker question
Thomas Olsen
thomas@c3amulet.com
Tue Jan 23 10:38:00 GMT 2007
Hi,
I have built a toolchain using the crosstool-0.43 on an i686 host for an
i386 target. I have succeeded building it using gcc-3.4.3-glibc-2.3.4.dat,
but Im not sure that the linker is using the correct search path. I have
the crosstool chain installed in /opt/crosstool/gcc-3.4.3-glibc-2.3.4 and
when doing i386-pc-linux-gnu-ld verbose then it reports three search dirs
as follows:
SEARCH_DIR(=/usr/local/lib), SEARCH_DIR(=/usr/lib), SEARCH_DIR(=/lib)
These paths look to reference the libraries on the host system and not the
toolchain libraries. Also when trying to build a dummy.c file which
includes:
main(){}
and afterwards doing a i386-pc-linux-gnu-readelf it reports:
Requesting program interpreter:
/lib/ld-linux.so.2
I would have expected to see something like in
/opt/crosstool/gcc-3.4.3-glibc-2.3.4/
gcc-3.4.3-glibc-2.3.4/lib/ld-linux.so.2
Have anybody any idea of where Im going wrong?
Thanks
Thomas Olsen
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list