From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3198 invoked by alias); 26 Mar 2008 18:32:27 -0000 Received: (qmail 3187 invoked by uid 22791); 26 Mar 2008 18:32:27 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 26 Mar 2008 18:32:06 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1JeaPq-0005tP-00; Wed, 26 Mar 2008 19:32:02 +0100 Date: Wed, 26 Mar 2008 18:38:00 -0000 From: Andrew Lunn To: Chris Zimman Cc: ecos-discuss@sourceware.org Message-ID: <20080326183202.GC5705@lunn.ch> Mail-Followup-To: Chris Zimman , ecos-discuss@sourceware.org References: <20080326180616.GA5705@lunn.ch> <20080326181817.GB5705@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] ARM EABI port / static constructor priority removal X-SW-Source: 2008-03/txt/msg00156.txt.bz2 On Wed, Mar 26, 2008 at 02:24:28PM -0400, Chris Zimman wrote: > > This won't work. For example, some watchdog drivers need the I2C > > subsystem to be initialized before they can be initialized. The IO > > layer must be initialised before libc etc. If you get these in the > > wrong order, expect bad things to happen. > > I don't understand why you think "this won't work" when "this" is exactly > what the static constructors are doing, except instead of being in one > translation unit, they're in multiple. Perhaps you're missing what I'm > saying -- I understand that things have to happen in order. What I'm saying > is that I don't think static constructors are necessarily the best way to > accomplish this. So back to my original question, what is your concept for replacing them with something else. How are you going to ensure things happen in the right order. Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss