[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Stack problems with GCC 4



On Mon, 2007-12-24 at 10:16 +0100, Andreas Schwab wrote:
> Alan Hourihane <alanh@fairlite.demon.co.uk> writes:
> 
> > There's a compiler option in GCC 4 too called
> > -fno-zero-initialized-in-bss which allows stksiz.c to be compiled
> > without any patch and correctly puts _stksiz into the data section, but
> > then GCC 2.x can't compile the code because it doesn't understand the
> > flag.
> 
> What about __attribute__((section(".data")))?

Tried that, GCC doesn't support that attribute.

I think that's why the -f option was added.

Alan.