This is the mail archive of the libc-alpha@sources.redhat.com 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]

Re: Fixing MIPS target under GLIBC....


On Thu, Mar 15, 2001 at 12:23:07AM -0800, Geoff Keating wrote:
> > Date: Wed, 14 Mar 2001 21:33:07 -0800
> > From: "H . J . Lu" <hjl@gnu.org>
> 
> > atexit has been moved to libc_nonshared.a, which is a static archive.
> > Since -lgcc comes after libc_nonshared.a, libc_nonshared.a is not
> > searched for the reference to atexit in libgcc.a. I am wondering why
> > I didn't see it under ia32. I will take a look to see what is going
> > on. We may have to modify gcc.
> 
> I thought gcc always did -lgcc -lc -lgcc for just this reason?
> 

It is different. For Linux/MIPS, now we need something like

-lgcc -lc -lgcc -lc

since libgcc references atexit in __main.o. That is why I said
Linux/MIPS was broken.


H.J.


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