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]

Request: WEAK declaration of _sbrk() for embedded


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


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