[PATCH] Define _sbrk, read, _write as weak symbols
Jeff Johnston
jjohnstn@redhat.com
Tue Feb 11 19:56:00 GMT 2014
Patch applied.
-- Jeff J.
----- Original Message -----
From: "Marcus Shawcroft" <marcus.shawcroft@gmail.com>
To: "Joey Ye" <joey.ye@arm.com>
Cc: "Newlib Mailing List" <newlib@sourceware.org>
Sent: Tuesday, February 11, 2014 9:53:20 AM
Subject: Re: [PATCH] Define _sbrk, read, _write as weak symbols
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.
/Marcus
More information about the Newlib
mailing list