News for hackers. Stuff that matters.
Re:OpenBSD: Mandatory enforcement of indirect branch targets by messe on Friday July 14, 2023 @10:40AM (#36724656)
Good catch. Yeah, as long as the functions address is never taken the compiler has a lot of leeway with static functions; it can even avoid emitting code for them entirely if it can prove their never called or if it's able to compute their results at compile-time.
Re:OpenBSD: Mandatory enforcement of indirect branch targets by josephg on Friday July 14, 2023 @11:46AM (#36725655)
Yep. Or inline them at every call site if that makes sense to do based on the optimization level and flags.