[PATCH] gcc: implement AIX-style constructors

CHIGOT, CLEMENT clement.chigot@atos.net
Tue Nov 2 13:28:16 GMT 2021


Hi David,

Here is the new version of the patch.
I've moved the startup function in crtcdtors files.

I'm just wondering if the part dealing with the
__init_aix_libgcc_cxa_atexit is needed. I'm adding it because
the destructor created in crtcxa.o is following GCC format and
thus won't be launched if the flag "-mcdtors=aix" is passed.
However, as you said, this option might not operate correctly
if the GCC runtime isn't rebuild with it.

Thanks,
Clément
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gcc-implement-AIX-style-constructors.patch
Type: text/x-patch
Size: 23397 bytes
Desc: 0001-gcc-implement-AIX-style-constructors.patch
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20211102/43f87594/attachment-0001.bin>


More information about the Gcc-patches mailing list