yavtuk wrote: Maks I think the issue is related to long jump pass and inserted stubs which requires bti on the target side. PatchEntries pass is before long jump pass. I will check it again https://github.com/llvm/llvm-project/pull/179486