Add IBT support to the retpoline PLTs. Since we use retpoline PLTs by
authorkettenis <kettenis@openbsd.org>
Tue, 23 May 2023 09:37:49 +0000 (09:37 +0000)
committerkettenis <kettenis@openbsd.org>
Tue, 23 May 2023 09:37:49 +0000 (09:37 +0000)
commitde7c61520b5745e9ce02f628ea118897162f017d
tree9d47999552bb2276547bc3b345e886e1d82bfd71
parentfc405d53b73a2d73393cb97f684863d17b583e38
Add IBT support to the retpoline PLTs.  Since we use retpoline PLTs by
default on OpenBSD this will give us IBT support by default.  Fixes
indirect function calls for functions in shared libraries.

This doesn't fix retpoline+znow PLTs yet; a fix for that will follow.

ok miod@, guenther@
gnu/llvm/lld/ELF/Arch/X86_64.cpp