mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcAppleKernelImageLib: Fix _kmod_info stab handling
This commit is contained in:
parent
7da2ec6231
commit
b1cf08c902
@ -108,12 +108,14 @@ PrelinkedFindKmodAddress (
|
||||
return 0;
|
||||
}
|
||||
|
||||
SymbolName = MachoGetSymbolName64 (ExecutableContext, Symbol);
|
||||
if (SymbolName && AsciiStrCmp (SymbolName, "_kmod_info") == 0) {
|
||||
if (!MachoIsSymbolValueInRange64 (ExecutableContext, Symbol)) {
|
||||
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)) {
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Index++;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user