From af6671019fe8634cd39558782660b7d0927e4314 Mon Sep 17 00:00:00 2001 From: Kelvin Lawson Date: Fri, 21 Sep 2012 02:38:09 +0100 Subject: [PATCH] system.ld: Add 64KB heap. --- platforms/qemu_integratorcp/system.ld | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/platforms/qemu_integratorcp/system.ld b/platforms/qemu_integratorcp/system.ld index 4d4fc2c..b9e6259 100644 --- a/platforms/qemu_integratorcp/system.ld +++ b/platforms/qemu_integratorcp/system.ld @@ -57,8 +57,12 @@ SECTIONS _end_bss = .; __bss_end__ = . ; - . = ALIGN(256); + . = ALIGN(8); + heap_low = .; /* for _sbrk */ + . = . + 0x10000; /* 64kB of heap memory */ + heap_top = .; /* for _sbrk */ + . = ALIGN(256); .stack : { __stack_start__ = . ; @@ -83,12 +87,10 @@ SECTIONS __stack_end__ = .; } >sram - /*DISCARD : { *(.eh_*) }*/ } - _end = .; -PROVIDE(end = .); \ No newline at end of file +PROVIDE(end = .);