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 06:04:25AM -0800, H.J. Lu wrote:
> Date: Thu, 15 Mar 2001 06:04:25 -0800
> From: "H . J . Lu" <hjl@lucon.org>
> To: Geoff Keating <geoffk@redhat.com>
> Cc: sjhill@cotw.com, libc-alpha@sources.redhat.com, gcc@gcc.gnu.org
> Subject: 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.

Without having research this into depth - I don't know why we have this
reference at all.  So I'm sure -lgcc -lc -lgcc -lc is definately wrong.

  Ralf


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