SMM: enforce absolute calls within user-defined functions by transforming function calls to function pointer calls