OcAppleKernelImageLib: Fix _kmod_info stab handling
@@ -108,6 +108,7 @@ PrelinkedFindKmodAddress (
return 0;
}
+ if ((Symbol->Type & MACH_N_TYPE_STAB) == 0) {
SymbolName = MachoGetSymbolName64 (ExecutableContext, Symbol);
if (SymbolName && AsciiStrCmp (SymbolName, "_kmod_info") == 0) {
if (!MachoIsSymbolValueInRange64 (ExecutableContext, Symbol)) {
@@ -115,6 +116,7 @@ PrelinkedFindKmodAddress (
}
break;
}
+ }
Index++;
}
