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

Nick Clifton
Wed Jul 13 09:48:00 GMT 2005

Hi Shaun,

> I didn't see weak symbols used anywhere in libgloss or newlib, so I
> thought they were not allowed for some reason.

What about libgloss/arm/crt0.S which contains:

	.weak __stack
	.weak FUNCTION (hardware_init_hook)
	.weak FUNCTION (software_init_hook)

Or newlib/libc/misc/init.c:

   extern void (*__preinit_array_start []) (void) __attribute__((weak));

> Weak symbols would
> certainly solve my problem! Can the ENOSYS stubs _link and _raise, and
> the semi-functional stubs _fstat and _stat in libgloss/arm/syscalls.c
> also be made weak?

Certainly, I do not see why not.  Would you like to have a go at 
creating a patch ?  :-)


More information about the Newlib mailing list