]> Git Repo - uclibc-ng.git/commitdiff
fix from Bernd Schmidt to make sure _dl_debug_state isnt optimized away and does...
authorMike Frysinger <[email protected]>
Sun, 28 Jan 2007 10:32:59 +0000 (10:32 -0000)
committerMike Frysinger <[email protected]>
Sun, 28 Jan 2007 10:32:59 +0000 (10:32 -0000)
ldso/ldso/ldso.c

index bf6ebde33335e373ebfd4b2f5722a06b84b2f8ed..cf8ba5f9def427dbd746ce04f318a5fa8b154dbd 100644 (file)
@@ -75,8 +75,13 @@ static int _dl_suid_ok(void);
  * 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 */
This page took 0.027462 seconds and 4 git commands to generate.