3 libdl/_dl_alloc.c | 6 ------
4 libdl/_dl_main.c | 6 +++---
5 3 files changed, 5 insertions(+), 13 deletions(-)
7 --- dietlibc-0.28/dyn_start.c.orig 2004-11-30 23:35:14.000000000 +0100
8 +++ dietlibc-0.28/dyn_start.c 2005-02-11 02:39:07.558115344 +0100
11 #ifndef __DYN_LIB_SHARED
12 /* pre main, post _start */
13 -int _dyn_start(int argc, char **argv, char **envp, structor dl_init);
14 +static __attribute__((section(".init"))) void _init(void);
15 +int main(int argc, char **argv, char **envp);
16 int _dyn_start(int argc, char **argv, char **envp, structor dl_init)
18 - static __attribute__((section(".init"))) void _init(void);
19 - int main(int argc, char **argv, char **envp);
21 if (dl_init) atexit(dl_init);
24 --- dietlibc-0.28/libdl/_dl_alloc.c.orig 2002-03-11 20:21:11.000000000 +0100
25 +++ dietlibc-0.28/libdl/_dl_alloc.c 2005-02-11 02:45:27.069420856 +0100
30 -#ifdef __DIET_LD_SO__
31 -static struct _dl_handle*_dl_root_handle=(struct _dl_handle*)0;
32 -static struct _dl_handle*_dl_top_handle=(struct _dl_handle*)0;
33 -static struct _dl_handle*_dl_free_list=(struct _dl_handle*)0;
35 struct _dl_handle*_dl_root_handle=(struct _dl_handle*)0;
36 struct _dl_handle*_dl_top_handle=(struct _dl_handle*)0;
37 struct _dl_handle*_dl_free_list=(struct _dl_handle*)0;
42 --- dietlibc-0.28/libdl/_dl_main.c.orig 2005-01-29 03:29:16.000000000 +0100
43 +++ dietlibc-0.28/libdl/_dl_main.c 2005-02-11 02:43:04.147148344 +0100
48 +static void _dl_jump(void);
49 static inline int work_on_pltgot(struct _dl_handle*dh) {
50 /* declare _dl_jump static otherwise we have a GOT access BEFOR we have the resolver */
51 - static void _dl_jump(void);
52 if ((dh->plt_rel)&&(!(dh->flags&RTLD_NOW))) {
53 unsigned long*tmp=dh->pltgot;
57 #ifdef WANT_LD_SO_GDB_SUPPORT
58 /* gdb debug break point */
59 -static volatile void _dl_debug_state(void) {
60 +static void _dl_debug_state(void) {
62 struct _dl_handle*tmp;
63 pf(__FUNCTION__); pf(": r_state "); ph(_r_debug.r_state); pf("\n");
67 /* gdb debug init stuff */
68 -static struct r_debug _r_debug;
69 +struct r_debug _r_debug;
72 /* now reuse some unchanged sources */