HomePhabricator

Reordering KextImageInfo::LoadImageUsingMemoryModule so we only call…

Authored by jasonmolenda on Nov 7 2019, 7:34 PM.

Description

Reordering KextImageInfo::LoadImageUsingMemoryModule so we only call ModulesDidLoad at the end of the method after the new module has been added to the target and the sections have all been adjusted to their actual load addresses. Solves a problem where an operating system plugin in the kernel could be loaded multiple times; the first before the binary had even been added to the target.

rdar://problem/50523558

Details

Committed
jasonmolendaNov 7 2019, 7:34 PM
Parents
rGe0407f549653: [PowerPC][Altivec] Fix offsets for vec_xl and vec_xst
Branches
Unknown
Tags
Unknown