__libc_stack_end missing + patch

Joakim Tjernlund joakim.tjernlund at lumentis.se
Wed Sep 7 03:46:25 PDT 2005


Works fine here, something went wrong with your update I think. Has
libc.so a dependency on ldso? If not that's probably the cause.

 Jocke
> -----Original Message-----
> From: uclibc-bounces at uclibc.org [mailto:uclibc-bounces at uclibc.org] On Behalf Of Ronald Wahl
> Sent: 07 September 2005 11:09
> To: uclibc at uclibc.org
> Subject: __libc_stack_end missing + patch
> 
> Hello,
> 
> just updated my system from 0.9.21 to 0.9.28 and got an error regarding
> a missing reference to __libc_stack_end. This symbol is referenced by
> libc.so itself and is contained in the libc.a and ldso. But it seems
> that the "ld" Linker cannot resolve it. I read somewhere that it mmight
> be in libgcc.a but not on my own selfmade toolchain. So i added a weak
> symbol for it. Patch below. I hope it will not break something.
> 
> - ron
> 
> Index: libc/misc/internals/__uClibc_main.c
> ===================================================================
> RCS file: /srv/CVS/pplinux/uClibc/libc/misc/internals/__uClibc_main.c,v
> retrieving revision 1.1.309.2
> retrieving revision 1.2
> diff -u -r1.1.309.2 -r1.2
> --- libc/misc/internals/__uClibc_main.c 6 Sep 2005 07:24:17 -0000       1.1.309.2
> +++ libc/misc/internals/__uClibc_main.c 7 Sep 2005 07:29:54 -0000       1.2
> @@ -28,6 +28,8 @@
>  extern void __guard_setup(void);
>  #endif
> 
> +void * __dummy_libc_stack_end = NULL;
> +weak_alias(__dummy_libc_stack_end, __libc_stack_end);
> 
>  /*
>   * Prototypes.
> 
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://busybox.net/cgi-bin/mailman/listinfo/uclibc



More information about the uClibc mailing list