[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .ctor section of shared libraries with PathScale compiler

From: Ralf Wildenhues
Subject: Re: .ctor section of shared libraries with PathScale compiler
Date: Mon, 23 Apr 2007 07:26:13 +0200
User-agent: Mutt/1.5.15 (2007-04-13)

[ http://thread.gmane.org/gmane.comp.gnu.libtool.bugs/5697
  http://thread.gmane.org/gmane.comp.gnu.libtool.bugs/5465 ]

Hello all, and apologies for the huge delay,

* Peter Wainwright wrote on Sun, Jul 23, 2006 at 11:06:36PM CEST:
> I'm trying to compile a large existing project which uses libtool,
> using the PathScale C++ compiler.
> This project has several shared libraries. I found that
> the constructors for the global objects in these libraries were not
> being called at all. It turns out that the order of linking objects
> is wrong: it goes
> <my objects...> crtbeginS.o crtendS.o
> instead of
> crtbeginS.o <my objects...> crtendS.o

* Jeff Squyres wrote on Sat, Apr 21, 2007 at 03:09:45AM CEST:
> Greetings Libtool!  Long-time Libtool fan here, reporting that we ran  
> into the exact same bug as described on this list about 8 months ago  
> by Peter Wainwright:
>     http://www.mail-archive.com/address@hidden/msg00899.html
> There was no reply to Peter's post on the list; did anyone have a  
> chance to look at his patch, perchance?

It was still sitting in my ever-longer queue; sorry.

I think a fix for this issue would be a lot easier for me together with
a testcase (along the lines of HEAD's tests/template.at) that exposes
this issue.  A small self-contained (portable!) example would be a good 
start.  This helps ensure that we don't regress with other unrelated
compilers.  (And testing will then allow me to evaluate whether the
patch Peter suggested is good enough.)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]