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 4e1b46a + 013ce84 commit 4ee62cbCopy full SHA for 4ee62cb
src/patchelf.cc
@@ -1350,7 +1350,8 @@ void ElfFile<ElfFileParamNames>::modifyRPath(RPathOp op,
1350
if (!neededLibFound[j]) {
1351
std::string libName = dirName + "/" + neededLibs[j];
1352
try {
1353
- if (getElfType(readFile(libName, sizeof(Elf32_Ehdr))).machine == rdi(hdr->e_machine)) {
+ Elf32_Half library_e_machine = getElfType(readFile(libName, sizeof(Elf32_Ehdr))).machine;
1354
+ if (rdi(library_e_machine) == rdi(hdr->e_machine)) {
1355
neededLibFound[j] = true;
1356
libFound = true;
1357
} else
0 commit comments