This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]