This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Request: WEAK declaration of _sbrk() for embedded
- From: A dot Grieco at erhardt-leimer dot com
- To: newlib at sourceware dot org
- Date: Thu, 5 Dec 2013 14:16:06 +0100
- Subject: Request: WEAK declaration of _sbrk() for embedded
- Authentication-results: sourceware.org; auth=none
Hey,
in the changing-process of our arm-none-eabi toolchain we found a
definition of _sbrk in the ..arm/syscalls.c file. Could you explain to me,
why this function isn't declared as a weak symbol? We recently where faced
with the problem of needing our own _sbrk defined, but also using the
"rdimon". The provided _sbrk function is not really applicable if you work
with - maybe even multiple - external memory.
So my question now:
Couldn't you add a weak declaration to the _sbrk? I mean this is such a
fundamental function to embedded devices, so I can't believe that no one
ever faced that problem. So everyone could use the newlib _sbrk, but it
would be also possible to provide a self-written.
Regards,
Toni