This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Avoid use of libgcc_s and libgcc_eh when building glibc
On Wed, 15 Aug 2012, Khem Raj wrote:
> > Since static-stubs.c is linked in as a .o file, I wouldn't have expected
> > --as-needed to make any difference; --as-needed is about linking in shared
> > libraries, not .o or .a files.
>
> may be thats what is wrong in my case its .a
> libgcc-stubs.a and not libgcc-stubs.o
I said static-stubs not libgcc-stubs. You should have static-stubs.o, it
should be built from the ARM-specific source file not the generic one, and
it should be linked in before libgcc.a (which in turn is linked in before
libgcc-stubs.a).
--
Joseph S. Myers
joseph@codesourcery.com