Bug 24043 – DMD does not emit IBT/BTI instructions

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
Other
Creation time
2023-07-10T13:22:22Z
Last change time
2023-07-31T12:54:17Z
Assigned to
No Owner
Creator
Brian Callahan
Blocks
20933

Comments

Comment #0 by bcallah — 2023-07-10T13:22:22Z
I asked on the forum. Putting this here as well. OpenBSD moved to an IBT/BTI world. This causes binaries created with DMD to fail, as DMD does not emit the proper instructions for IBT/BTI. It would be good to bring DMD into the IBT/BTI world, as the world is likely moving in this direction.
Comment #1 by dkorpel — 2023-07-10T13:59:33Z
Forum link: https://forum.dlang.org/thread/[email protected]?page=1 It would help if you could explain or give references explaining what "proper instructions for IBT/BTI" are.
Comment #2 by bcallah — 2023-07-10T14:12:05Z
ENDBR and NOTRACK
Comment #3 by bcallah — 2023-07-10T14:42:08Z
For completeness, this is the -fcf-protection=branch flag on GCC and Clang.
Comment #4 by bcallah — 2023-07-31T12:54:17Z