[uClibc-cvs] svn commit: trunk/uClibc/libc/sysdeps/linux/powerpc
jocke at uclibc.org
jocke at uclibc.org
Mon Mar 21 10:42:43 UTC 2005
Author: jocke
Date: 2005-03-21 03:42:43 -0700 (Mon, 21 Mar 2005)
New Revision: 10054
Log:
Pass _dl_fini function ptr to __uClibc_start_main().
To actually use it, one must define _DL_DO_FINI_IN_LIBC globally.
That will also break ABI for apps linked with previous version of crtX.S.
They must be relinked with this version to work again.
Modified:
trunk/uClibc/libc/sysdeps/linux/powerpc/crt0.S
Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/powerpc/crt0.S
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/powerpc/crt0.S 2005-03-21 10:40:38 UTC (rev 10053)
+++ trunk/uClibc/libc/sysdeps/linux/powerpc/crt0.S 2005-03-21 10:42:43 UTC (rev 10054)
@@ -70,6 +70,7 @@
addi r5,r5,1
rlwinm r5,r5,2,0,29
add r5,r5,r4
+ mr r8,r7 /* Pass _dl_fini from ldso */
/* Ok, now run uClibc's main() -- shouldn't return */
#if (defined L_crt1 || defined L_Scrt1) && defined __UCLIBC_CTOR_DTOR__
# ifdef L_Scrt1
More information about the uClibc-cvs
mailing list