From 396955bb71e5f398e4e0864388b8e47040e34242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 29 Jul 2010 18:47:24 +0000 Subject: I forgot in the last commit (enabling patchelf on the fuloong2f) to change some 4096 to the pageSize decided at the top of the module. --- src/patchelf.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/patchelf.cc b/src/patchelf.cc index a30be83..ccd27ff 100644 --- a/src/patchelf.cc +++ b/src/patchelf.cc @@ -407,7 +407,7 @@ void ElfFile::shiftFile(unsigned int extraPages, Elf_Addr sta wri(phdr.p_vaddr, wri(phdr.p_paddr, startPage)); wri(phdr.p_filesz, wri(phdr.p_memsz, shift)); wri(phdr.p_flags, PF_R | PF_W); - wri(phdr.p_align, 4096); + wri(phdr.p_align, pageSize); } @@ -567,7 +567,7 @@ void ElfFile::rewriteSectionsLibrary() wri(phdr.p_vaddr, wri(phdr.p_paddr, startPage)); wri(phdr.p_filesz, wri(phdr.p_memsz, neededSpace)); wri(phdr.p_flags, PF_R | PF_W); - wri(phdr.p_align, 4096); + wri(phdr.p_align, pageSize); /* Write out the replaced sections. */ -- cgit v0.12