From d46df57ea12786c55a509f244868dd3721462471 Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Mon, 22 Aug 2011 21:49:38 +0200 Subject: [PATCH] Fix uninitialized variable problem for l0dables. --- firmware/l0dable/ram.ld | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/firmware/l0dable/ram.ld b/firmware/l0dable/ram.ld index bc62075..87e4f7a 100644 --- a/firmware/l0dable/ram.ld +++ b/firmware/l0dable/ram.ld @@ -30,19 +30,12 @@ SECTIONS *(vtable) *(.data*) _edata = .; - } > sram - - /* zero initialized data */ - .bss : - { - _bss = .; + /* force zero initialized data to be present*/ *(.bss*) *(COMMON) _ebss = .; } > sram - + end = .; - /* For GDB compatibility we decrease the top with 16 bytes */ - stack_entry = sram_top - 16; }