aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/gdbclientutils.py
diff options
context:
space:
mode:
authorDaniil Kovalev <dkovalev@accesssoftek.com>2025-07-29 07:29:04 +0300
committerGitHub <noreply@github.com>2025-07-29 04:29:04 +0000
commit19ba224fb8a925d095d84836bc9896bf564dfd99 (patch)
treebdb5b69ef545082b762b3fe0fdf1f31474d2c182 /lldb/packages/Python/lldbsuite/test/gdbclientutils.py
parentce86ff105b506aa0f150f676f59ee43abc00a213 (diff)
downloadllvm-19ba224fb8a925d095d84836bc9896bf564dfd99.zip
llvm-19ba224fb8a925d095d84836bc9896bf564dfd99.tar.gz
llvm-19ba224fb8a925d095d84836bc9896bf564dfd99.tar.bz2
[PAC][compiler-rt] Fix init/fini array signing schema (#150691)
When `ptrauth_calls` is present but `ptrauth_init_fini` is not, compiler emits raw unsigned pointers in `.init_array`/`.fini_array` sections. Previously, `__do_init`/`__do_fini` pointers, which are explicitly added to the sections, were implicitly signed (due to the presense of `ptrauth_calls`), while all the other pointers in the sections were implicitly added by the compiler and thus non-signed.. As a result, the sections contained a mix of unsigned function pointers and function pointers signed with default signing schema. This patch introduces use of inline assembly for this particular case, so we can manually specify that we do not want to sign the pointers. Note that we cannot use `__builtin_ptrauth_strip` for this purpose since its result is not a constant expression.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/gdbclientutils.py')
0 files changed, 0 insertions, 0 deletions