C Start-Up shared vs static
Carlos O'Donell
carlos@systemhalted.org
Fri Dec 4 18:48:00 GMT 2009
On Fri, Dec 4, 2009 at 1:32 PM, Charles Coldwell
<coldwell@frank.harvard.edu> wrote:
> so that elf-init.o will be included in both shared and static versions of
> libc?
No, they should be coming from libc_nonshared.a, which the linker
should be including for you automatically. Something is wrong with
your cross-compilers sysroot. Normally the sysroot contains
$sysroot/usr/lib/libc.so and the libc.so references libc_nonshared.a
and that pulls in the required symbols.
You should use a -Wl,-Map,linkermap.txt to see how this all works on
another target, and compare.
Cheers,
Carlos.
More information about the Libc-help
mailing list