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

Re: [MiNT] Stack problems with GCC 4



On Mon, Dec 24, 2007 at 02:04:58PM +0100, Vincent Rivi?re wrote:
>>> What about __attribute__((section(".data")))?
>> Tried that, GCC doesn't support that attribute.
>
> An ugly workaround would be to declare the _stksize variable explicitly in 
> the data segment using inline assembly.
>
> /* long _stksize = 0L; */
> __asm__ (
>         ".data\n"
>         "\t.globl __stksize\n"
>         "__stksize:\n"
>         "\t.long 0"
> );

I like this too.

I'll let Frank decide which is the correct path for MiNTlib though.

Alan.