Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: flameeyes@... (Diego 'Flameeyes' Pettenò)
Subject: Re: RFC: Should preserve-libs be enabled by default?
Date: Fri, 30 May 2008 14:39:53 +0200
Rémi Cardona <remi@g.o> 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.

-- 
Diego "Flameeyes" Pettenò
http://blog.flameeyes.eu/
Attachment:
pgpehP5SV7F03.pgp (PGP signature)
References:
RFC: Should preserve-libs be enabled by default?
-- Marius Mauch
Re: RFC: Should preserve-libs be enabled by default?
-- Diego 'Flameeyes' Pettenò
Re: Re: RFC: Should preserve-libs be enabled by default?
-- Marius Mauch
Re: Re: RFC: Should preserve-libs be enabled by default?
-- Peter Volkov
Re: Re: RFC: Should preserve-libs be enabled by default?
-- Mike Auty
Re: Re: RFC: Should preserve-libs be enabled by default?
-- Santiago M. Mola
Re: Re: RFC: Should preserve-libs be enabled by default?
-- Rémi Cardona
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Re: RFC: Should preserve-libs be enabled by default?
Next by thread:
Re: Re: RFC: Should preserve-libs be enabled by default?
Previous by date:
Re: Re: RFC: Should preserve-libs be enabled by default?
Next by date:
Re: Re: RFC: Should preserve-libs be enabled by default?


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.