This is the mail archive of the libc-alpha@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: Avoid use of libgcc_s and libgcc_eh when building glibc


On Wed, Aug 15, 2012 at 8:41 AM, Joseph S. Myers
<joseph@codesourcery.com> wrote:
> On Wed, 15 Aug 2012, Mike Frysinger wrote:
>
>> On Wednesday 15 August 2012 05:46:52 Joseph S. Myers wrote:
>> > On Tue, 14 Aug 2012, Khem Raj wrote:
>> > > if I change the order of stub library and libgcc then it works fine
>> > > may be it needs to be $(static-gnulib-arch) -lgcc
>> > > $(static-gnulib-arch) but below patch worked for me.
>> >
>> > The issue you describe is supposed to be addressed by
>> > ports/sysdeps/arm/static-stubs.c (see
>> > <http://sourceware.org/ml/libc-ports/2012-07/msg00013.html> for more
>> > explanation) so you need to investigate why the symbols aren't being
>> > resolved by that file for you.
>>
>> maybe Khem is using the gold linker which implies --as-needed which means an
>> incorrect linking order could be the bug (as earlier items get discarded as
>> unused) ?
>
> 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

>
> --
> Joseph S. Myers
> joseph@codesourcery.com


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