This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 ? :-)


Cheers
  Nick



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]