From owner-freebsd-toolchain@FreeBSD.ORG Thu Feb 16 16:16:59 2012 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 780D8106564A; Thu, 16 Feb 2012 16:16:59 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id BDE688FC18; Thu, 16 Feb 2012 16:16:58 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q1GFlVAu095080 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 16 Feb 2012 17:47:31 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q1GFlV9s014076; Thu, 16 Feb 2012 17:47:31 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q1GFlU7B014075; Thu, 16 Feb 2012 17:47:30 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 16 Feb 2012 17:47:30 +0200 From: Konstantin Belousov To: Pedro Giffuni Message-ID: <20120216154730.GL3283@deviant.kiev.zoral.com.ua> References: <4F3C5A3A.6050107@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ocX8nJS1hl+tlwGc" Content-Disposition: inline In-Reply-To: <4F3C5A3A.6050107@FreeBSD.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: John Marino , freebsd-toolchain@freebsd.org Subject: Re: DragonFly added support for ELF preinit, init, and fini arrays X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2012 16:16:59 -0000 --ocX8nJS1hl+tlwGc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 15, 2012 at 08:22:02PM -0500, Pedro Giffuni wrote: > Hello; >=20 > FYI, this commit in DragonFly seems interesting: >=20 > http://leaf.dragonflybsd.org/mailarchive/commits/2012-02/msg00146.html >=20 > It appears like linux had them from a while and some years ago they start= ed > using them for C++ in gcc: >=20 > http://gcc.gnu.org/ml/gcc-patches/2005-03/msg01872.html >=20 > cheers, If you read the commit message, you will notice something at the end. I have WIP patches to add support for the init arrays to our rtld. It is not tested yet, and I want to ponder more about the ABI changes in csu that I introduce. In fact, I am more interested in having answer to the question, what immediate and long-term use do we have for the feature. Also, I want non-artificial test cases for DT_INIT_ARRAY and DT_FINI_ARRAY. http://people.freebsd.org/~kib/misc/init_array.1.patch --ocX8nJS1hl+tlwGc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAk89JRIACgkQC3+MBN1Mb4jwbgCdEjrMOSnFnkNWvIH8+Gb4WnIk yWsAn1L8bWpl/TJ+gaDoIw5nZ9uj/tmS =qhbl -----END PGP SIGNATURE----- --ocX8nJS1hl+tlwGc--