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.
1 parent 29c085f commit a1eab1cCopy full SHA for a1eab1c
src/patchelf.cc
@@ -135,7 +135,10 @@ class ElfFile
135
ElfFile * elfFile;
136
bool operator ()(const Elf_Phdr & x, const Elf_Phdr & y)
137
{
138
- if (x.p_type == PT_PHDR) return true;
+ if (x.p_type == PT_PHDR) {
139
+ if (y.p_type == PT_PHDR) return false;
140
+ return true;
141
+ }
142
if (y.p_type == PT_PHDR) return false;
143
return elfFile->rdi(x.p_paddr) < elfFile->rdi(y.p_paddr);
144
}
0 commit comments