Skip to content

Commit c050b32

Browse files
author
Lluís Batlle i Rossell
committed
Making patchelf work on a MIPS machine with 16KB page size (it's set in its kernel defconfig),
the Lemote Fuloong 2F.
1 parent 04f8530 commit c050b32

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/patchelf.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@
2121
using namespace std;
2222

2323

24+
#ifdef MIPSEL
25+
/* The lemote fuloong 2f kernel defconfig sets a page size of 16KB */
26+
const unsigned int pageSize = 4096*4;
27+
#else
2428
const unsigned int pageSize = 4096;
29+
#endif
2530

2631

2732
static bool debugMode = false;

0 commit comments

Comments
 (0)