summaryrefslogtreecommitdiff
path: root/lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py
diff options
context:
space:
mode:
authorKazuki Sakamoto <sakamoto@splhack.org>2023-06-12 09:07:53 -0700
committerKazuki Sakamoto <kaz@meta.com>2023-06-20 15:00:09 -0700
commitb0b9605a544dbf26940a48777af401a419f4e4f1 (patch)
treeac515d4cc2b1bd333af34d586004945d3d574f02 /lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py
parentebc757d3b6af28001de0e65fcba88928a4402d1f (diff)
[lldb][ObjectFileELF] Set ModuleSpec file offset and size
In Android API level 23 and above, dynamic loader is able to load .so file directly from APK. https://android.googlesource.com/platform/bionic/+/master/ android-changes-for-ndk-developers.md# opening-shared-libraries-directly-from-an-apk ObjectFileELF::GetModuleSpecifications will load a .so file, which is page aligned and uncompressed, directly from a zip file. However it does not set the .so file offset and size to the ModuleSpec. Also crc32 calculation uses more data than the .so file size. Set the .so file offset and size to the ModuleSpec, and set the size to MapFileData length argument. For normal file, file_offset should be zero, and length should be the size of the file. Differential Revision: https://reviews.llvm.org/D152757
Diffstat (limited to 'lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py')
0 files changed, 0 insertions, 0 deletions