On openbsd amd64, the compiler has been found to generate some nasty jump
authorderaadt <deraadt@openbsd.org>
Wed, 26 Apr 2023 22:12:44 +0000 (22:12 +0000)
committerderaadt <deraadt@openbsd.org>
Wed, 26 Apr 2023 22:12:44 +0000 (22:12 +0000)
commit80e1ae21f686dea92992e6a0e268d948aa1b27b0
treed539889fcd156c474ac9b2ad7f366c5e5e4aa3de
parentea2d6ca456f0cbbfe11fc3ad66c271dbffe2a648
On openbsd amd64, the compiler has been found to generate some nasty jump
table variations (calculate address into %rax, jmp %rax) which is not
compatible with IBT endbr64.  The specific generated code sequence was
found inside clang, which made the debugging experience pretty miserable.
So we will have to disable jump tables by default.
ok kettenis
gnu/llvm/clang/lib/Driver/ToolChains/Clang.cpp