--- dietlibc-0.28/libdl/_dl_main.c.orig 2005-01-29 03:29:16.000000000 +0100 +++ dietlibc-0.28/libdl/_dl_main.c 2005-02-11 02:43:04.147148344 +0100 @@ -662,7 +662,7 @@ #ifdef WANT_LD_SO_GDB_SUPPORT /* gdb debug break point */ -static volatile void _dl_debug_state(void) { +static void _dl_debug_state(void) { #ifdef DEBUG struct _dl_handle*tmp; pf(__FUNCTION__); pf(": r_state "); ph(_r_debug.r_state); pf("\n"); @@ -676,7 +676,7 @@ } /* gdb debug init stuff */ -static struct r_debug _r_debug; +struct r_debug _r_debug; #endif /* now reuse some unchanged sources */