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