diff options
author | Lukc <lukc@upyum.com> | 2011-01-16 17:20:50 +0100 |
---|---|---|
committer | Lukc <lukc@upyum.com> | 2011-01-16 17:20:50 +0100 |
commit | dfc46bdad1822b547ec0636dd35e1ffbd1cd869a (patch) | |
tree | 9e6a884e6417a41daac3281bcddd75a8742e5e7b /glibc/Optimize-__getpagesize-a-bit.patch | |
parent | 84351f3600a5ff705a66e9f343f60477c9857310 (diff) | |
download | base-dfc46bdad1822b547ec0636dd35e1ffbd1cd869a.tar.gz base-dfc46bdad1822b547ec0636dd35e1ffbd1cd869a.tar.bz2 base-dfc46bdad1822b547ec0636dd35e1ffbd1cd869a.tar.xz base-dfc46bdad1822b547ec0636dd35e1ffbd1cd869a.zip |
Suppression de glibc de base. o// \\o \o/ _o/ \o_ \o/ \\o o//
Diffstat (limited to 'glibc/Optimize-__getpagesize-a-bit.patch')
-rw-r--r-- | glibc/Optimize-__getpagesize-a-bit.patch | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/glibc/Optimize-__getpagesize-a-bit.patch b/glibc/Optimize-__getpagesize-a-bit.patch deleted file mode 100644 index 38aa4b2..0000000 --- a/glibc/Optimize-__getpagesize-a-bit.patch +++ /dev/null @@ -1,63 +0,0 @@ -This is the important part of 8f4a5048eea6536ee85c0f2670adbb97d71e427d. -Unfortunately the assertion fails in statically linked binaries. - -diff --git a/sysdeps/unix/sysv/linux/getpagesize.c b/sysdeps/unix/sysv/linux/getpagesize.c -index 6d03b3b..0866079 100644 ---- a/sysdeps/unix/sysv/linux/getpagesize.c -+++ b/sysdeps/unix/sysv/linux/getpagesize.c -@@ -1,4 +1,4 @@ --/* Copyright (C) 1991,1992,1995-1997,2000,2002,2004 -+/* Copyright (C) 1991,1992,1995-1997,2000,2002,2004,2010 - Free Software Foundation, Inc. - This file is part of the GNU C Library. - -@@ -17,30 +17,37 @@ - Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA - 02111-1307 USA. */ - -+#include <assert.h> - #include <unistd.h> - #include <sys/param.h> - - #include <ldsodefs.h> -+#include <kernel-features.h> - - /* Return the system page size. */ - int - __getpagesize () - { -+#ifdef __ASSUME_AT_PAGESIZE -+ assert (GLRO(dl_pagesize) != 0); -+ return GLRO(dl_pagesize); -+#else - if (GLRO(dl_pagesize) != 0) - return GLRO(dl_pagesize); - --#ifdef EXEC_PAGESIZE -+# ifdef EXEC_PAGESIZE - return EXEC_PAGESIZE; --#else /* No EXEC_PAGESIZE. */ --#ifdef NBPG --#ifndef CLSIZE --#define CLSIZE 1 --#endif /* No CLSIZE. */ -+# else /* No EXEC_PAGESIZE. */ -+# ifdef NBPG -+# ifndef CLSIZE -+# define CLSIZE 1 -+# endif /* No CLSIZE. */ - return NBPG * CLSIZE; --#else /* No NBPG. */ -+# else /* No NBPG. */ - return NBPC; --#endif /* NBPG. */ --#endif /* EXEC_PAGESIZE. */ -+# endif /* NBPG. */ -+# endif /* EXEC_PAGESIZE. */ -+#endif - } - libc_hidden_def (__getpagesize) - weak_alias (__getpagesize, getpagesize) --- -1.7.2.1 - |