The system directories can't be changed?
Pan ruochen
panruochen@gmail.com
Thu Dec 17 01:46:00 GMT 2009
Hi Andi,
I did try -nodefaultlibs with -L options. But it didn't seem to work.
Here is the link map:
=========================================================
Memory Configuration
Name Origin Length Attributes
*default* 0x0000000000000000 0xffffffffffffffff
Linker script and memory map
LOAD 1.o
LOAD /opt/CodeSourcery/Sourcery_G++_Lite/bin/../mips-linux-gnu/libc/soft-float/el/usr/lib/libc.so
START GROUP
LOAD /opt/CodeSourcery/Sourcery_G++_Lite/bin/../mips-linux-gnu/libc/soft-float/el/lib/libc.so.6
LOAD /opt/CodeSourcery/Sourcery_G++_Lite/bin/../mips-linux-gnu/libc/soft-float/el/usr/lib/libc_nonshared.a
LOAD /opt/CodeSourcery/Sourcery_G++_Lite/bin/../mips-linux-gnu/libc/soft-float/el/lib/ld.so.1
END GROUP
=========================================================
The system directories take precedence of -L directories.
The linker options are:
-nodefaultlibs -nostdlib -L$(UCLIBC)/lib -lc
----
Best Regards
PRC
Dec 17,2009
More information about the Gcc-help
mailing list