https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102952
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> --- Created attachment 51679 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51679&action=edit A patch to add -mindirect-branch-cs-prefix It adds CS prefix to call and jmp to thunk when converting indirect call and jump.