Patent ID: 9354947
Filing Date: 2016-05-31
CPC Classification: G06F

Claim Text:
1. A computer program product for a static linker to resolve a function call, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions readable by a computer processor to cause the computer processor to: identify, during link time, a first function call of a calling function to a callee function; determine whether the callee function is a local function; in response to determining that the callee function is a local function, determine whether the callee function has a plurality of entry points and whether an entry point of the plurality of entry points is a local entry point, the determining of whether the callee function has a plurality of entry points and whether an entry point of the plurality of entry points is a local entry point including accessing symbol information from a symbol table, the symbol table indicating a number of entry points and whether an entry point is a local entry point; and resolve, during link time, the first function call to enter the local entry point when it is determined that the callee function has a plurality of entry points and an entry point of the plurality of entry points is the local entry point, wherein the resolving of the first function call to enter the local entry point includes replacing a symbol for the callee function in the first function call with an address of the local entry point during link time.