[all-commits] [llvm/llvm-project] 6602e1: Reordering KextImageInfo::LoadImageUsingMemoryModule

Jason Molenda via All-commits all-commits at lists.llvm.org
Thu Nov 7 19:36:08 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6602e1fb0e34c1a755ef561de24e5b78a460672a
      https://github.com/llvm/llvm-project/commit/6602e1fb0e34c1a755ef561de24e5b78a460672a
  Author: Jason Molenda <jmolenda at apple.com>
  Date:   2019-11-07 (Thu, 07 Nov 2019)

  Changed paths:
    M lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp

  Log Message:
  -----------
  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>




More information about the All-commits mailing list