Skip to content

Commit

Permalink
OcAppleKernelLib: Rebuild KC when no kexts are injected
Browse files Browse the repository at this point in the history
Fixes an issue where __PRELINK_INFO (first segment) is relocated and thus renders relocations invalid (relative to the first segment's VA)
  • Loading branch information
mhaeuser committed Oct 25, 2020
1 parent 6ffd979 commit 7264984
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Library/OcAppleKernelLib/KernelCollection.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,6 @@ KcRebuildMachHeader (
return EFI_INVALID_PARAMETER;
}

if (FilesetSize == 0) {
return EFI_SUCCESS; ///< Just in case.
}

if (CurrentSize + RequiredSize > TextSegment->FileSize) {
//
// We do not have enough memory in the header, free some memory by merging
Expand Down

0 comments on commit 7264984

Please sign in to comment.