CPC G06F 9/4486 (2018.02) | 18 Claims |
1. A method, implemented at a computer system that includes a processor, for dynamically overriding a function based on a capability set, the method comprising:
reading a portion of an executable image file, the portion including a first memory address corresponding to a first callee function implementation, the first memory address having been inserted into the portion by a compiler toolchain, wherein the first callee function implementation is a capability-agnostic implementation of a callee function;
based on extensible metadata included in the executable image file, and based on a capability set that is specific to the computer system, determining a second memory address corresponding to a second callee function implementation, wherein the second callee function implementation is a capability-specific implementation of the callee function that utilizes at least one capability in the capability set; and
before execution of the portion, modifying the portion to replace the first memory address with the second memory address.
|