https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61637
--- Comment #18 from Krishnamoorthy C <chandrakm at hotmail dot com> --- Not just linking a file with __attribute__, but throwing exceptions inside the constructor ( shared lib constructor ) is causing a core dump. This same code had been run successfully on Red Hat Linux, HP UX and SUSE and Oracle Linux, but on AIX this does not run. Are you saying this is a known problem specific to AIX or all platforms ? Thanks for all the help, Krishnamoorthy