Using global variable in xnu kernel, set # of addressable bits
authorJason Molenda <jason@molenda.com>
Mon, 3 Apr 2023 20:49:51 +0000 (13:49 -0700)
committerJason Molenda <jason@molenda.com>
Mon, 3 Apr 2023 20:49:51 +0000 (13:49 -0700)
commit8b092714c304defb00876a01995af3b114dadc92
treefd8b18a1bbc4f3b005f9a1ae0dc8ad05302eb7ba
parente538c6fc3048e1fb1a58da879275d6804186856e
Using global variable in xnu kernel, set # of addressable bits

The kernel has a global variable with the TCR_EL1.T1SZ value,
from which was can calculate the number of addressable bits.
Find that symbol in DynamicLoaderDarwinKernel and set the bits
to that value for this Process.

Differential Revision: https://reviews.llvm.org/D147462
rdar://107445318
lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp