260 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20Chigot?=
Date: Mon, 4 Oct 2021 09:24:43 +0200
Subject: [PATCH] gcc: implement AIX-style constructors
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
AIX linker now supports constructors and destru
> 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
Clement,
+ /* Use __C_runtime_pstartup to run ctors and register dtors.
+ This whole part should normally be in libgcc but as
+ AIX cdtors format is currently not the default, managed
+ that in collect2. */
Why are you emitting the special startup function call in collect2.c
instead of plac
From: David Edelsohn
Sent: Tuesday, October 19, 2021 10:14 PM
To: CHIGOT, CLEMENT
Cc: gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] gcc: implement AIX-style constructors
Caution! External email. Do not open attachments or click links, unless this
email comes from a known sender an
On Thu, Oct 21, 2021 at 8:39 AM CHIGOT, CLEMENT wrote:
>
> Hi David,
>
> The problem is that cdtors is created by the linker only when the -bcdtors
> flag is provided. Thus, if we add "extern void (* _cdtors[]) (void);" to
> the "crtcxa.c", we can't use it without using the new constructor types.
igot?=
Date: Mon, 4 Oct 2021 09:24:43 +0200
Subject: [PATCH] gcc: implement AIX-style constructors
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
AIX linker now supports constructors and destructors detection. For such
functions to be detected, their name