[En-Nut-Discussion] Uninitialized variables (under GCC)

Korbai, Zoltan korbai.zoltan at axelero.hu
Mon Oct 20 19:24:38 CEST 2003


Hi,

I tried to use GCC noinit section for some variables:

long var __attribute__ ((section (".noinit")));

The problem is that this section is after the BSS
and NUT overwrite this area with HEAP.

One solution is using __heap_start instead of __bss_end
when initialize the heap (init.c, nutinit.c).

Zoltan





More information about the En-Nut-Discussion mailing list