Subject: Re: removing init/fini_fallthru
To: None <tech-toolchain@netbsd.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: tech-toolchain
Date: 06/21/2006 04:36:22
On Tue, Jun 20, 2006 at 00:38:30 +1000, Simon Burge wrote:

> MIPS with gcc4 is having some problems generating bad code which we sort
> of worked around but breaking gcc3 in the process.  Nick Hudson and I
> have come up with the following which does away with the init_fallthru
> and fini_fallthru functions and just puts _init and _fini directly in
> the .init and .fini sections.

I'm confused.  crti.c says:

void    _init(void) __attribute__((section(".init")));
void    _fini(void) __attribute__((section(".fini")));

so these functions are already in .init and .fini respectively.


SY, Uwe
-- 
uwe@ptc.spbu.ru                         |       Zu Grunde kommen
http://snark.ptc.spbu.ru/~uwe/          |       Ist zu Grunde gehen