View | Details | Raw Unified
Collapse All | Expand All

(-) glibc-2.3.6.orig/elf/dl-load.c (+3 lines)
 Lines 1150-1155    Link Here 
	    goto call_lose_errno;
	    goto call_lose_errno;
	  }
	  }
	if (GLRO(dl_madvise))
	  __madvise ((void *) l->l_map_start, maplength, MADV_WILLNEED);
	l->l_map_end = l->l_map_start + maplength;
	l->l_map_end = l->l_map_start + maplength;
	l->l_addr = l->l_map_start - c->mapstart;
	l->l_addr = l->l_map_start - c->mapstart;
(-) glibc-2.3.6.orig/elf/dl-support.c (+4 lines)
 Lines 48-53    Link Here 
/* If nonzero print warnings about problematic situations.  */
/* If nonzero print warnings about problematic situations.  */
int _dl_verbose;
int _dl_verbose;
int _dl_madvise;
/* We never do profiling.  */
/* We never do profiling.  */
const char *_dl_profile;
const char *_dl_profile;
const char *_dl_profile_output;
const char *_dl_profile_output;
 Lines 243-248    Link Here 
  _dl_direct = *(getenv ("LD_BIND_DIRECT") ?: "") == '\0';
  _dl_direct = *(getenv ("LD_BIND_DIRECT") ?: "") == '\0';
  _dl_madvise = *(getenv ("LD_NOMADVISE") ?: "") == '\0';
  _dl_bind_not = *(getenv ("LD_BIND_NOT") ?: "") != '\0';
  _dl_bind_not = *(getenv ("LD_BIND_NOT") ?: "") != '\0';
  _dl_dynamic_weak = *(getenv ("LD_DYNAMIC_WEAK") ?: "") == '\0';
  _dl_dynamic_weak = *(getenv ("LD_DYNAMIC_WEAK") ?: "") == '\0';
(-) glibc-2.3.6.orig/elf/rtld.c (+9 lines)
 Lines 125-130    Link Here 
    ._dl_lazy = 1,
    ._dl_lazy = 1,
    ._dl_direct = 0,
    ._dl_direct = 0,
    ._dl_fpu_control = _FPU_DEFAULT,
    ._dl_fpu_control = _FPU_DEFAULT,
    ._dl_madvise = 1,
    /* Function pointers.  */
    /* Function pointers.  */
    ._dl_get_origin = _dl_get_origin,
    ._dl_get_origin = _dl_get_origin,
 Lines 2155-2160    Link Here 
	  break;
	  break;
	case 9:
	case 9:
	  /* Test whether we should not advise the kernel
	     about memory usage.  */
	  if (memcmp (envline, "NOMADVISE", 9) == 0)
	    {
	      GLRO(dl_madvise) = envline[10] == '\0';
	      break;
	    }
	  /* Test whether we want to see the content of the auxiliary
	  /* Test whether we want to see the content of the auxiliary
	     array passed up from the kernel.  */
	     array passed up from the kernel.  */
	  if (!INTUSE(__libc_enable_secure)
	  if (!INTUSE(__libc_enable_secure)
(-) glibc-2.3.6.orig/include/sys/mman.h (+1 lines)
 Lines 8-13    Link Here 
		       int __flags, int __fd, __off64_t __offset);
		       int __flags, int __fd, __off64_t __offset);
extern int __munmap (void *__addr, size_t __len);
extern int __munmap (void *__addr, size_t __len);
extern int __mprotect (void *__addr, size_t __len, int __prot);
extern int __mprotect (void *__addr, size_t __len, int __prot);
extern int __madvise (void *__addr, size_t __len, int __advise);
/* This one is Linux specific.  */
/* This one is Linux specific.  */
extern void *__mremap (void *__addr, size_t __old_len,
extern void *__mremap (void *__addr, size_t __old_len,
(-) glibc-2.3.6.orig/sysdeps/generic/ldsodefs.h (+3 lines)
 Lines 417-422    Link Here 
  /* Do we do direct relocations?  */
  /* Do we do direct relocations?  */
  EXTERN int _dl_direct;
  EXTERN int _dl_direct;
  /* Should we advise kernel about memory usage? */
  EXTERN int _dl_madvise;
  /* Nonzero if runtime lookups should not update the .got/.plt.  */
  /* Nonzero if runtime lookups should not update the .got/.plt.  */
  EXTERN int _dl_bind_not;
  EXTERN int _dl_bind_not;
(-) glibc-2.3.6.orig/sysdeps/unix/sysv/linux/syscalls.list (-1 / +1 lines)
 Lines 31-37    Link Here 
klogctl		EXTRA	syslog		i:isi	klogctl
klogctl		EXTRA	syslog		i:isi	klogctl
lchown		-	lchown		i:sii	__lchown	lchown
lchown		-	lchown		i:sii	__lchown	lchown
posix_madvise	-	madvise		Vi:pii	posix_madvise
posix_madvise	-	madvise		Vi:pii	posix_madvise
madvise		-	madvise		i:pii	madvise
madvise		-	madvise		i:pii	__madvise	madvise
mincore		-	mincore		i:anV	mincore
mincore		-	mincore		i:anV	mincore
mlock		-	mlock		i:bn	mlock
mlock		-	mlock		i:bn	mlock
mlockall	-	mlockall	i:i	mlockall
mlockall	-	mlockall	i:i	mlockall