News for hackers. Stuff that matters.
Re:New code for SIGILL faults to help identify misbranches o... by wahern on Thursday February 22, 2024 @05:14PM (#39474057)
Interestingly, RISC-V's Zicfilp proposal includes an optional, 20-bit label operand so that call sites and targets can be paired more strictly.

I'm not sure how or if it addresses trampolines and similar thunks that interpose callee and caller, but which don't necessarily touch arguments. Such thunks are quite common in dynamically linked code as ELF and Mach-O do lazy loading by default--dynamic function symbols are initially small thunks that load the dependency and then forward the call, restoring registers and the stack without having to know the call signature.

There are no comments on this comment yet.