http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54791



--- Comment #2 from David Edelsohn <dje at gcc dot gnu.org> 2012-10-03 13:46:44 
UTC ---

Constructors are working because they work without your big header.  I would

try using divide and conquer techniques to reduce the big header and find out

what is interfering with constructors.  It gives all appearances that it is due

to the user code.



Static constructors and destructors are run by functions generated at link

time.  A programmer wrapper around AIX ld called "collect2" scans object files

and libraries for constructors and generates functions that are invoked by AIX

linker -binitfini feature.  You can add -Wl,-debug to the link line to see the

way the AIX linker is invoked and see the helper function.



Is something in the big header changing the mangled names of constructors and

destructors so that they do not use the standard pattern?  Or inserting some

illegal character like dollar sign ($)?

Reply via email to