libgloss/arm/libcfunc.c: alarm [PATCH]

Ralf Corsepius ralf.corsepius@rtems.org
Tue Jul 12 17:14:00 GMT 2005


On Tue, 2005-07-12 at 09:44 -0700, Shaun Jackman wrote:
> On 7/12/05, Nick Clifton <nickc@redhat.com> wrote:
> > Hi Shaun,
> > 
> > > Removing the alarm stub from libcfunc.c will break the build for the
> > > users that only require a stub definition of alarm,
> > 
> > Why can't the declaration of alarm be a weak definition ?
> > 
> > Cheers
> >    Nick
> 
> I didn't see weak symbols used anywhere in libgloss or newlib, so I
> thought they were not  allowed for some reason. Weak symbols would
> certainly solve my problem!
AFACT, weak symbols are non-portable.

aout and COFF definitely don't support it. I am not sure how portable
they are on ELF targets. Most current GCC/ELF targets seem to support
them (At least, I am not aware of any that doesn't), but newlib is
supposed not to be tied to GCC nor ELF.

Ralf




More information about the Newlib mailing list