summaryrefslogtreecommitdiff
blob: 31ed0d45c82d8a36acca23e9761c1b0d5b35045b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Disable vdso for some buggy kernels
http://thread.gmane.org/gmane.comp.lib.glibc.user/1903

Index: glibc-2.19/elf/dl-support.c
===================================================================
--- glibc-2.19.orig/elf/dl-support.c
+++ glibc-2.19/elf/dl-support.c
@@ -260,16 +260,6 @@ _dl_aux_init (ElfW(auxv_t) *av)
       case AT_FPUCW:
 	GLRO(dl_fpu_control) = av->a_un.a_val;
 	break;
-#ifdef NEED_DL_SYSINFO
-      case AT_SYSINFO:
-	GL(dl_sysinfo) = av->a_un.a_val;
-	break;
-#endif
-#ifdef NEED_DL_SYSINFO_DSO
-      case AT_SYSINFO_EHDR:
-	GL(dl_sysinfo_dso) = (void *) av->a_un.a_val;
-	break;
-#endif
       case AT_UID:
 	uid ^= av->a_un.a_val;
 	seen |= 1;
Index: glibc-2.19/elf/setup-vdso.h
===================================================================
--- glibc-2.19.orig/elf/setup-vdso.h
+++ glibc-2.19/elf/setup-vdso.h
@@ -20,7 +20,7 @@ static inline void __attribute__ ((alway
 setup_vdso (struct link_map *main_map __attribute__ ((unused)),
 	    struct link_map ***first_preload __attribute__ ((unused)))
 {
-#ifdef NEED_DL_SYSINFO_DSO
+#if 0
   if (GLRO(dl_sysinfo_dso) == NULL)
     return;