This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: header & multilib rearrangement for ppc ELF.


On Wed, Apr 05, 2000 at 02:02:04AM -0700, Geoff Keating wrote:
> > Date: Tue, 4 Apr 2000 21:23:49 -0700
> > From: Richard Henderson <rth@cygnus.com>
> > Cc: gcc-patches@gcc.gnu.org
> > 
> > On Tue, Apr 04, 2000 at 06:21:45PM -0700, Geoff Keating wrote:
> > > +	* config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Always use crtbegin.
> > > +	(ENDFILE_LINUX_SPEC): Always use crtend.
> > 
> > This is a mistake.  It means you're not tracking
> > the C++ ABI changes that have been made in that file.
> > 
> > Pay special attention to the handling of __dso_handle.
> 
> Hmmm.  I see.  I need to also generate multilibbed versions of
> crtbeginS.o and crtendS.o.  That's slightly annoying, as I was hoping
> to get rid of them, but I guess not.

You would have had to generate multilib'ed versions any way in order to get the
endian changes incorporated.

> Wait.  I don't see.  How is this really supposed to work?  It seems to
> assume a limited model of the execution environment, in which each
> process holds exactly one object which is not compiled with -shared;
> this is not a safe assumption, as both the all-shared-object and
> multiple-nonshared-object cases can occur (the first more frequently).
> 
> -- 
> - Geoffrey Keating <geoffk@cygnus.com>

-- 
Michael Meissner, Cygnus Solutions, a Red Hat company.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work:	  meissner@redhat.com		phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org	fax:   +1 978-692-4482

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