diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-07-29 18:47:24 (GMT) |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-07-29 18:47:24 (GMT) |
commit | 396955bb71e5f398e4e0864388b8e47040e34242 (patch) | |
tree | 0264fc2e6c5cf7310a4660f8ee76380f5329311d | |
parent | c050b32d983732d0aa8cf84da3afd504be9650f1 (diff) | |
download | patchelf-396955bb71e5f398e4e0864388b8e47040e34242.zip patchelf-396955bb71e5f398e4e0864388b8e47040e34242.tar.gz patchelf-396955bb71e5f398e4e0864388b8e47040e34242.tar.bz2 |
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.
-rw-r--r-- | src/patchelf.cc | 4 |
1 files 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<ElfFileParamNames>::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<ElfFileParamNames>::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. */ |