Request: WEAK declaration of _sbrk() for embedded
A.Grieco@erhardt-leimer.com
A.Grieco@erhardt-leimer.com
Sun Dec 8 02:40:00 GMT 2013
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
More information about the Newlib
mailing list