svn commit: trunk/uClibc/ldso/ldso
vapier at uclibc.org
vapier at uclibc.org
Sun Jan 28 10:33:00 UTC 2007
Author: vapier
Date: 2007-01-28 02:32:59 -0800 (Sun, 28 Jan 2007)
New Revision: 17590
Log:
fix from Bernd Schmidt to make sure _dl_debug_state isnt optimized away and does not generate relocs
Modified:
trunk/uClibc/ldso/ldso/ldso.c
Changeset:
Modified: trunk/uClibc/ldso/ldso/ldso.c
===================================================================
--- trunk/uClibc/ldso/ldso/ldso.c 2007-01-28 10:29:23 UTC (rev 17589)
+++ trunk/uClibc/ldso/ldso/ldso.c 2007-01-28 10:32:59 UTC (rev 17590)
@@ -75,8 +75,13 @@
* address mapping is changed in some way.
*/
void _dl_debug_state(void);
-void _dl_debug_state()
+rtld_hidden_proto(_dl_debug_state, noinline);
+void _dl_debug_state(void)
{
+ /* Make sure GCC doesn't recognize this function as pure, to avoid
+ * having the calls optimized away.
+ */
+ __asm__("");
}
static unsigned char *_dl_malloc_addr = 0; /* Lets _dl_malloc use the already allocated memory page */
More information about the uClibc-cvs
mailing list