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 4d03718 + 2d0e0b9 commit 9592fdfCopy full SHA for 9592fdf
src/patchelf.cc
@@ -1003,8 +1003,9 @@ void ElfFile<ElfFileParamNames>::normalizeNoteSegments()
1003
size_t size = 0;
1004
for (const auto & shdr : shdrs) {
1005
if (rdi(shdr.sh_type) != SHT_NOTE) continue;
1006
- if (rdi(shdr.sh_offset) != curr_off) continue;
+ if (rdi(shdr.sh_offset) != roundUp(curr_off, rdi(shdr.sh_addralign))) continue;
1007
size = rdi(shdr.sh_size);
1008
+ curr_off = roundUp(curr_off, rdi(shdr.sh_addralign));
1009
break;
1010
}
1011
if (size == 0)
0 commit comments