my g++-cross was configured with following parameters:<br><br>./configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu 
--target=armv7fl-montavista-linux-gnueabi --enable-cross 
--with-sysroot=/home/arm_v7_vfp_le/target/ 
--with-build-sysroot=/home/arm_v7_vfp_le/target/ --enable-shared 
--enable-languages=c,c++ --with-as=/home/arm_v7_vfp_le/bin/arm_v7_vfp_le-as
 --with-ld=/home/arm_v7_vfp_le/bin/arm_v7_vfp_le-ld 
--enable-checking=release --disable-multilib 
--enable-llvm=/home/Desktop/Sanjeev/LLVM/llvm-2.7 
--enable-clocale=gnu --with-cpu=cortex-a8 --with-interwork 
--with-arch=armv7-a --with-mode=arm --with-tune=cortex-a8 
--with-fpu=vfp3 --disable-bootstrap --disable-libmudflap 
--disable-libssp<br><br>But any file e.g. a.c compiled with g++-cross if I try to link using ld-new, I get error<br>ld-new libs a.o -o binary<br>a.o : incompatible object file<br><br>ld-new works only with those objects which are compiled using native gcc but doesn't work for cross-compiler gcc/arm.<br>
<br><div class="gmail_quote">On Mon, Jul 12, 2010 at 6:22 PM, Anton Korobeynikov <span dir="ltr"><<a href="mailto:anton@korobeynikov.info">anton@korobeynikov.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello<br>
<div class="im"><br>
> a) 'llvm-gcc -c -flo -O2' to generate the .bc files.<br>
</div>How llvm-gcc was configured & compiled?<br>
<div><div></div><div class="h5"><br>
With best regards, Anton Korobeynikov<br>
Faculty of Mathematics and Mechanics, Saint Petersburg State University<br>
</div></div></blockquote></div><br>