Subject: Re: C shared lib question
To: None <tech-toolchain@netbsd.org>
From: Jason R Thorpe <thorpej@shagadelic.org>
List: tech-toolchain
Date: 03/09/2000 17:43:49
On Fri, Mar 10, 2000 at 01:07:20AM +0000, Christos Zoulas wrote:

 > > Well, that is sucky.  The linker is supposed to recognize those and stuff
 > > them into the .init and .fini sections.
 > 
 > Is it? I don't think so. I thought that you needed:
 > 
 > extern void _init(void) __attribute__((section(".init")));

Well, you don't need this in the Solaris toolchain, at least.  The
Solaris kernel, for example, has _init() and _fini() routines with
no such attributes (they don't use GCC, after all :-) in several
device drivers...

-- 
        -- Jason R. Thorpe <thorpej@shagadelic.org>