From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1K23u5-0003eY-Jh for garchives@archives.gentoo.org; Fri, 30 May 2008 12:40:17 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3152CE049F; Fri, 30 May 2008 12:40:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 0C605E049F for ; Fri, 30 May 2008 12:40:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id A19DD66826 for ; Fri, 30 May 2008 12:40:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -3.599 X-Spam-Level: X-Spam-Status: No, score=-3.599 required=5.5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xWcyGDPSF3Tt for ; Fri, 30 May 2008 12:40:09 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id F13F064C5E for ; Fri, 30 May 2008 12:40:05 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1K23tr-0007Ue-0f for gentoo-dev@gentoo.org; Fri, 30 May 2008 12:40:03 +0000 Received: from ppp-169-232.21-151.libero.it ([151.21.232.169]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 May 2008 12:40:03 +0000 Received: from flameeyes by ppp-169-232.21-151.libero.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 May 2008 12:40:03 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-dev@lists.gentoo.org From: flameeyes@gmail.com (Diego 'Flameeyes' =?utf-8?Q?Petten=C3=B2?=) Subject: [gentoo-dev] Re: RFC: Should preserve-libs be enabled by default? Date: Fri, 30 May 2008 14:39:53 +0200 Message-ID: References: <20080529011316.54f0f1f6@sheridan.genone.homeip.net> <20080530070243.dc40e0f7.genone@gentoo.org> <1212130551.29080.118.camel@camobap> <483FA9BE.9040506@gentoo.org> <3c32af40805300509o7a3c042av8f95f422b02ea39b@mail.gmail.com> <483FF3B4.5090000@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp-169-232.21-151.libero.it User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:LnMJ3a+ng5B6kTDRPA5mOjl5qEY= Sender: news X-Archives-Salt: e6408e01-9eea-4b10-9982-92c07d52cf00 X-Archives-Hash: bc121ba31e110d9a9108e91f1e137057 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable R=C3=A9mi Cardona writes: > --as-needed breaks legitimate C++ code, I have yet to see it break > plain C code (but I could be wrong). This because C does not have constructors or static objects. I suppose I can write a couple of C files that can present the problem, but really, they would break as soon as I change the loading rules by moving to a non-ELF system or a different dynamic loader. It's interesting to note that Microsoft _did_ think of this problem when designing the .NET framework, and they answer is ensuring just that the static constructor will be called (right) before any static method or attribute is referenced and (right) before any object of the given class is istantiated. They don't get otherwise an absolute order in which static constructors are called. =2D-=20 Diego "Flameeyes" Petten=C3=B2 http://blog.flameeyes.eu/ --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkg/9ZkACgkQe2h1+2mHVWP/ZgCeO4Or/L1tSfk7I4iQ36gEZ74f U7UAn2jP/VWPZMVRP2m/24bi+cquapms =VB0e -----END PGP SIGNATURE----- --=-=-=-- -- gentoo-dev@lists.gentoo.org mailing list