]> git.pld-linux.org Git - packages/dietlibc.git/blob - dietlibc-gcc4.patch
- build fixes.
[packages/dietlibc.git] / dietlibc-gcc4.patch
1
2  dyn_start.c       |    6 ++----
3  libdl/_dl_alloc.c |    6 ------
4  libdl/_dl_main.c  |    6 +++---
5  3 files changed, 5 insertions(+), 13 deletions(-)
6
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
9 @@ -29,12 +29,10 @@
10  
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)
17  {
18 -  static __attribute__((section(".init"))) void _init(void);
19 -  int main(int argc, char **argv, char **envp);
20 -
21    if (dl_init) atexit(dl_init);
22    _init();
23    atexit(_fini);
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
26 @@ -4,15 +4,9 @@
27  
28  #include "_dl_int.h"
29  
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;
34 -#else
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;
38 -#endif
39  
40  #ifdef __DIET_LD_SO__
41  static
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
44 @@ -168,9 +168,9 @@
45    return got;
46  }
47  
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;
54      /* GOT */
55 @@ -662,7 +662,7 @@
56  
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) {
61  #ifdef DEBUG
62    struct _dl_handle*tmp;
63    pf(__FUNCTION__); pf(": r_state "); ph(_r_debug.r_state); pf("\n");
64 @@ -676,7 +676,7 @@
65  }
66  
67  /* gdb debug init stuff */
68 -static struct r_debug _r_debug;
69 +struct r_debug _r_debug;
70  #endif
71  
72  /* now reuse some unchanged sources */
This page took 0.036025 seconds and 4 git commands to generate.