C Start-Up shared vs static

Mike Frysinger vapier@gentoo.org
Fri Dec 4 22:27:00 GMT 2009


On Friday 04 December 2009 15:40:25 Charles Coldwell wrote:
> Inspired by what I read in the linker script /usr/lib/libc.so.6, I tried
> replacing "-lc" in the command line above with
> 
> /Volumes/cross/arm-none-linux/lib/libc.so.6
> /Volumes/cross/arm-none-linux/usr/lib/libc_nonshared.a
> --as-needed
> /Volumes/cross/arm-none-linux/lib/ld-linux.so.2
> --no-as-needed
> 
> This works, and builds an executable that runs on my target system.  So it
> would appear that all the binaries are in the right places, and contain
> the right bits, but the gcc driver routines aren't using them correctly.
> Could this be a problem in gcc specs?

more likely a problem with your install and/or configure.  your 
/Volumes/cross/arm-none-linux/ needs to be configured as the toolchain's 
sysroot.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-help/attachments/20091204/752016f1/attachment.sig>


More information about the Libc-help mailing list