This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: The system directories can't be changed?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]