This adds support for reading AArch64 Pointer Authentication regset
from elf-core file. Also includes a test-case for the same. Furthermore
there is also a slight refactoring of RegisterContextPOSIXCore_arm64
members and constructor. linux-aarch64-pac.core file is generated using
lldb/test/API/functionalities/postmortem/elf-core/main.c with following
clang arguments:
-march=armv8.5-a -mbranch-protection=pac-ret+leaf -nostdlib -static -g
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_arm64.cpp | ||
|---|---|---|
| 32 | How is the sizeof() calculated here? Is it the size of the masks themselves, or a header block. (SVE above is clearly a header of some kind) | |
| lldb/test/API/functionalities/postmortem/elf-core/TestLinuxCore.py | ||
| 451 | Do you need anything special to generate the core file? Might be worth noting in the commit message. Though I guess you can just compile a hello world on a Linux system with PAC. | |
| 453 | values = {
"data_mask": "...",
...
}(or dict(data_mask="...")) | |
How is the sizeof() calculated here? Is it the size of the masks themselves, or a header block. (SVE above is clearly a header of some kind)