Skip to content

Commit 396955b

Browse files
author
Lluís Batlle i Rossell
committed
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.
1 parent c050b32 commit 396955b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/patchelf.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ void ElfFile<ElfFileParamNames>::shiftFile(unsigned int extraPages, Elf_Addr sta
407407
wri(phdr.p_vaddr, wri(phdr.p_paddr, startPage));
408408
wri(phdr.p_filesz, wri(phdr.p_memsz, shift));
409409
wri(phdr.p_flags, PF_R | PF_W);
410-
wri(phdr.p_align, 4096);
410+
wri(phdr.p_align, pageSize);
411411
}
412412

413413

@@ -567,7 +567,7 @@ void ElfFile<ElfFileParamNames>::rewriteSectionsLibrary()
567567
wri(phdr.p_vaddr, wri(phdr.p_paddr, startPage));
568568
wri(phdr.p_filesz, wri(phdr.p_memsz, neededSpace));
569569
wri(phdr.p_flags, PF_R | PF_W);
570-
wri(phdr.p_align, 4096);
570+
wri(phdr.p_align, pageSize);
571571

572572

573573
/* Write out the replaced sections. */

0 commit comments

Comments
 (0)