Cross toolchain problem.

Sjei Ryhstrup sjei_rhystrup@yahoo.com
Fri Sep 28 22:52:00 GMT 2007


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  



More information about the Binutils mailing list