[PATCH] Define _sbrk, read, _write as weak symbols

Marcus Shawcroft marcus.shawcroft@gmail.com
Tue Feb 11 14:53:00 GMT 2014

On 7 February 2014 08:27, Joey Ye <joey.ye@arm.com> wrote:
> Users sometimes redefines _sbrk, _read and _write but would like to use
> other functions in rdimon. This patch defines them weak symbols to avoid
> multiple definition  linker errors.
> Joey Ye  <joey.ye@arm.com>
> ChangeLog.newlib:
>         libc/sys/arm/syscalls.c (_sbrk): Define as weak symbols.
>         (_read, _write): Ditto.
> ChangeLog.libgloss:
>         arm/syscalls.c (_sbrk): Define as weak symbols.
>         (_read, _write): Ditto.

Looks sensible to me, but I can;t approve.


More information about the Newlib mailing list