This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: Cross toolchain problem.


Correction.

> 
>
/home/sjei/cross/libexec/gcc/arm-linux/4.2.1/collect2
> --eh-frame-hdr -dynamic-linker /lib/ld-linux.so.2 -X
> -m armelf_linux -p
>
/home/sjei/cross/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/lib/crt1.o
>
/home/sjei/cross/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/lib/crti.o
> /home/sjei/cross/lib/gcc/arm-linux/4.2.1/crtbegin.o
> -L/home/sjei/cross/lib/gcc/arm-linux/4.2.1
>
-L/home/sjei/cross/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/lib
> foo.o -lgcc --as-needed -lgcc_s --no-as-needed -lc
> /home/sjei/cross/lib/gcc/arm-linux/4.2.1/crtend.o
>
/home/sjei/cross/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/lib/crtn.o

-lc should be specified before -lgcc --as-needed
-lgcc_s --no-as-needed and not after to produce the
non-libgcc_s linked executable. If -lc is given after
like in the above (incorrect) example, we still get
libgcc_s linked in.

Rgds.
Sjei


       
____________________________________________________________________________________
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  


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