This is the mail archive of the libc-help@sourceware.org mailing list for the glibc 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: C Start-Up shared vs static


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.


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