aboutsummaryrefslogtreecommitdiffstats
path: root/support/ld
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-09-07 14:39:44 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-09-07 23:34:24 -0400
commit741b8c8bbaa1524a1f60c80ff290e258b9fad159 (patch)
treef245144d9759921907a66df1300083b4d60ae911 /support/ld
parent4407a9622b5c024957bb619eafd2b655e17cf3f7 (diff)
downloadlibrambutan-741b8c8bbaa1524a1f60c80ff290e258b9fad159.tar.gz
librambutan-741b8c8bbaa1524a1f60c80ff290e258b9fad159.zip
syscalls.c: Bugfix _sbrk() implementation.
Fix _sbrk() implementation so it properly rejects negative arguments which would send the program break below the heap start. Fix incorrect check against argument causing heap overflow. Also set errno properly to ENOMEM when the call fails. Beginning and end of the heap are now determined by HEAP_START and HEAP_END macros. Their current values seem to work OK for heaps on the internal SRAM, but they'll need to get generalized for Maple Native.
Diffstat (limited to 'support/ld')
0 files changed, 0 insertions, 0 deletions