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"
);
Vincent Rivière