diff options
author | Sean Christopherson <[email protected]> | 2023-07-21 15:33:52 -0700 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2023-07-29 11:05:28 -0400 |
commit | 3bcbc20942db5d738221cca31a928efc09827069 (patch) | |
tree | 032fb1cd7c339c7006386df6a7a9bc10e35aced6 /scripts/gdb/linux/modules.py | |
parent | b439eb8ab578557263815ba8581d02c1b730e348 (diff) |
selftests/rseq: Play nice with binaries statically linked against glibc 2.35+
To allow running rseq and KVM's rseq selftests as statically linked
binaries, initialize the various "trampoline" pointers to point directly
at the expect glibc symbols, and skip the dlysm() lookups if the rseq
size is non-zero, i.e. the binary is statically linked *and* the libc
registered its own rseq.
Define weak versions of the symbols so as not to break linking against
libc versions that don't support rseq in any capacity.
The KVM selftests in particular are often statically linked so that they
can be run on targets with very limited runtime environments, i.e. test
machines.
Fixes: 233e667e1ae3 ("selftests/rseq: Uplift rseq selftests for compatibility with glibc-2.35")
Cc: Aaron Lewis <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions