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]

Re: Request: WEAK declaration of _sbrk() for embedded


It is a sensible suggestion to me. The thing I'm not sure of is what
else needed besides _sbrk.

Anyone have any objection before I write a patch for _sbrk?

Thanks,
Joey

On Tue, Jan 7, 2014 at 5:31 PM, Joey Ye <joey.ye.cc@gmail.com> wrote:
> It is a sensible suggestion to me. The thing I'm not sure of is what
> else needed besides _sbrk.
>
> Anyone have any objection before I write a patch for _sbrk?
>
> Thanks,
> Joey
>
> On Thu, Dec 5, 2013 at 9:16 PM,  <A.Grieco@erhardt-leimer.com> wrote:
>> 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]