svn commit: trunk/uClibc/libc/stdlib

Mike Frysinger vapier at gentoo.org
Wed Sep 19 15:49:17 UTC 2007


On Wednesday 19 September 2007, vda at uclibc.org wrote:
> +void (*__uc_malloc_failed)(size_t size) = NULL;
> +/* Seemingly superfluous assigment of NULL above prevents gas error
> + * ("__uc_malloc_failed can't be equated to common symbol
> + * __GI___uc_malloc_failed") in libc_hidden_data_def: */

that's because initialized data goes into the bss and you cant have aliases to 
symbols in the bss section

> +libc_hidden_data_def(__uc_malloc_failed)

you cant do hidden aliases on exported data due to binutils generating copy 
relocs on some architectures ... so the application gets a *copy* of this 
function pointer instead of the real thing :(
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20070919/a2b664a5/attachment-0002.pgp 


More information about the uClibc mailing list