[all-commits] [llvm/llvm-project] cdc6f8: Read and write a LC_NOTE "addrable bits" for addre...
Jason Molenda via All-commits
all-commits at lists.llvm.org
Thu Jul 22 01:07:05 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cdc6f8d728208d2f06c1c632a41d930e172b4fb5
https://github.com/llvm/llvm-project/commit/cdc6f8d728208d2f06c1c632a41d930e172b4fb5
Author: Jason Molenda <jason at molenda.com>
Date: 2021-07-22 (Thu, 22 Jul 2021)
Changed paths:
M lldb/include/lldb/Symbol/ObjectFile.h
M lldb/include/lldb/Target/Process.h
M lldb/source/Commands/CommandObjectProcess.cpp
M lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
M lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h
M lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp
A lldb/test/API/macosx/lc-note/addrable-bits/Makefile
A lldb/test/API/macosx/lc-note/addrable-bits/TestAddrableBitsCorefile.py
A lldb/test/API/macosx/lc-note/addrable-bits/main.c
Log Message:
-----------
Read and write a LC_NOTE "addrable bits" for addressing mask
This patch adds code to process save-core for Mach-O files which
embeds an "addrable bits" LC_NOTE when the process is using a
code address mask (e.g. AArch64 v8.3 with ptrauth aka arm64e).
Add code to ObjectFileMachO to read that LC_NOTE from corefiles,
and ProcessMachCore to set the process masks based on it when reading
a corefile back in.
Also have "process status --verbose" print the current address masks
that lldb is using internally to strip ptrauth bits off of addresses.
Differential Revision: https://reviews.llvm.org/D106348
rdar://68630113
More information about the All-commits
mailing list