IBT/BTI instructions and D compilers

Ernesto Castellotti erny.castell at gmail.com
Mon Jul 10 12:46:57 UTC 2023


On Monday, 10 July 2023 at 11:24:37 UTC, Brian Callahan wrote:
> Hi all (but probably mostly Walter) --
>
> OpenBSD has moved to an all-BTI world. Binaries produced by DMD 
> and LDC no longer work because of this. If other OSes make this 
> move, this problem will be further compounded. Is there any 
> thought about enabling IBT/BTI instructions in DMD and LDC?
>
> Thanks.

BTI should work on GCC D Compiler (GDC) with 
-branch-protection=bti, LDC as far as I know lacks flag support 
but it should be very easy to implement because LLVM supports BTI.
Regarding DMD I think it's very complex because probably the 
backend doesn't support it.


More information about the Digitalmars-d mailing list