[Bug target/54791] AIX-only: Constructors are not called in main program.
dje at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 7 22:15:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791
David Edelsohn <dje at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Depends on| |33704
--- Comment #19 from David Edelsohn <dje at gcc dot gnu.org> 2012-11-07 22:15:23 UTC ---
> Can you tell me a more elegant solution to this ?(if there is). If not at least
how can I do this more automatically? Now I do some steps manually(like going
to /tmp and modify that file and recompile it and relink).
For the shared library dependency order see PR 33704. The PR includes a patch,
but we never reached a final resolution and copyright assignment to include the
patch.
> I wonder how this has worked with xlC. There we used the -p flag when linking
the shared libraries with makeCCSharedLibs, and I think (not 100% sure )the
library got first initialized.
xlC now uses a program instead of a script. It generates some code to
explicitly run constructors in the right order and does not rely on AIX
semantics.
More information about the Gcc-bugs
mailing list