mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
AppleOcKernelLib: Do not index STAB symbols when scanning prelinked KEXTs.
This commit is contained in:
parent
146faf684d
commit
ad5d46f9af
@ -253,6 +253,11 @@ InternalScanBuildLinkedSymbolTable (
|
||||
|
||||
for (Index = 0; Index < Kext->NumberOfSymbols; ++Index) {
|
||||
Symbol = &Kext->SymbolTable[Index];
|
||||
if ((Symbol->Type & MACH_N_TYPE_STAB) != 0) {
|
||||
++NumDiscardedSyms;
|
||||
continue;
|
||||
}
|
||||
|
||||
Name = MachoGetSymbolName64 (&Kext->Context.MachContext, Symbol);
|
||||
Result = MachoSymbolNameIsCxx (Name);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user