This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: newlib PIC24/30 port
Really? The linker won't complain of multiple symbol definitions?
On Mon, Feb 9, 2009 at 12:26 AM, Karolina Lindqvist
<karolina.lindqvist@kramnet.se> wrote:
> söndagen den 8 februari 2009 skrev Leo Singer:
>
>> You might have noticed that many of the symbols in Microchip's
>> standard library are prefixed with __attribute__ ((weak)). This makes
>> it possible for user code to override standard library routines and
>> syscalls. At my company, we have a source file called "iosupport.c"
>> for each board that defines the open, read, write, and close routines.
>
> There is another thread here discussing this weak thing. Since the libraries
> are normally last in the gcc/ld command, if you include iosupport.o before
> the libraries, there is no need for weak definitions for this purpose, as I
> see it.
>
> Karolina
>