This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[RFA/libgloss/arm] Handle zero heap base from semihosting
- From: Matthew Gretton-Dann <matthew dot gretton-dann at arm dot com>
- To: newlib at sourceware dot org
- Cc: Nick Clifton <nickc at redhat dot com>
- Date: Mon, 26 Sep 2011 16:27:25 +0100
- Subject: [RFA/libgloss/arm] Handle zero heap base from semihosting
Hi,
The attached patch fixes an issue in libgloss' heap setup when using
semihosting.
In particular the semihosting SYS_HEAPINFO call can return 0 for the
heap_base, and this means that the C library is to start the heap at the
end of the image.
This behaviour is documented here:
http://infocenter.arm.com/help/topic/com.arm.doc.dui0471-/Bacbefaa.html
The attached patch handles this case.
Please can someone review.
Thanks,
Matt
libgloss/ChangeLog:
2011-09-02 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* arm/crt0.s: support 0 heap base response from semihosting.
Thanks,
Matt
--
Matthew Gretton-Dann
Principal Engineer, PD Software - Tools, ARM Ltd
Attachment:
1109-libgloss-heap-init.txt
Description: Text document