We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6dfc3c2 + ad5f1f0 commit 640a35fCopy full SHA for 640a35f
src/patchelf.cc
@@ -752,6 +752,7 @@ void ElfFile<ElfFileParamNames>::rewriteSectionsLibrary()
752
}
753
754
/* Add a segment that maps the replaced sections into memory. */
755
+ wri(hdr->e_phoff, sizeof(Elf_Ehdr));
756
phdrs.resize(rdi(hdr->e_phnum) + 1);
757
wri(hdr->e_phnum, rdi(hdr->e_phnum) + 1);
758
Elf_Phdr & phdr = phdrs[rdi(hdr->e_phnum) - 1];
0 commit comments