summaryrefslogtreecommitdiffstats
path: root/src/patchelf.cc
diff options
context:
space:
mode:
authorFelipe Sateler <fsateler@debian.org>2016-01-15 01:47:00 (GMT)
committerFelipe Sateler <fsateler@debian.org>2016-01-15 01:47:00 (GMT)
commit5c5026e572e36358b170d15a9451e6a471d710b6 (patch)
treed63b1fee97feddbb4e33cf47257a931557c262d6 /src/patchelf.cc
parent2b3c9602e710a92f5ab2c6f0a6143fc382aca724 (diff)
downloadpatchelf-5c5026e572e36358b170d15a9451e6a471d710b6.zip
patchelf-5c5026e572e36358b170d15a9451e6a471d710b6.tar.gz
patchelf-5c5026e572e36358b170d15a9451e6a471d710b6.tar.bz2
Allow specifying page size at configure time
Diffstat (limited to 'src/patchelf.cc')
-rw-r--r--src/patchelf.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/patchelf.cc b/src/patchelf.cc
index ddde0c1..e4bb084 100644
--- a/src/patchelf.cc
+++ b/src/patchelf.cc
@@ -40,13 +40,7 @@ unsigned char * contents = 0;
static unsigned int getPageSize(){
-#ifdef MIPSEL
- /* The lemote fuloong 2f kernel defconfig sets a page size of
- 16KB. */
- return 4096 * 4;
-#else
- return 4096;
-#endif
+ return PAGESIZE;
}