发明名称 Selection of an entry point of a function having multiple entry points
摘要 An object has an unresolved symbol corresponding with a direct first function call in a first module of the object. A loader receives a request to resolve the symbol and identifies a callee function called by the first function call, identifies a second module in which the callee function is located, and determines whether the function call corresponds with one or more properties of two or more properties. The loader returns a first callee function entry point associated with a first property when the first function call has the first property. The loader returns a second callee function entry point associated with a second property when the first function call has the second property. The first and second callee function entry points are for storing in a program linkage table. The request can be received when the first function call is first invoked or when the first module is loaded.
申请公布号 US9280333(B1) 申请公布日期 2016.03.08
申请号 US201414569974 申请日期 2014.12.15
申请人 International Business Machines Corporation 发明人 Gschwind Michael K.;Weigand Ulrich
分类号 G06F9/44;G06F9/445 主分类号 G06F9/44
代理机构 代理人 Wilhelm Richard A.;Bennett Steven L.
主权项 1. A computer-implemented method, comprising: executing a loader having a resolver by a processor, the loader: receiving a first request related to an object, the object having an unresolved symbol corresponding with a direct first function call in a first module of the object, the first request being a request to resolve the symbol;resolving the symbol by: identifying a callee function called by the first function call,identifying a second module in which the callee function is located,determining whether the first function call corresponds with one or more properties of two or more properties,returning a first callee function entry point associated with a first property of the two or more properties when the first function call has the first property, wherein the first callee function entry point is selected for storing as an entry in a program linkage table (PLT) for the first function call;returning a second callee function entry point associated with a second property of the two or more properties when the first function call has the second property, wherein the second callee function entry point is selected for storing as the entry in the PLT for the first function call; andreturning a preferred callee function entry point when it is determined that the first function call corresponds with two properties of two or more properties, wherein the preferred callee function entry point is selected for storing as the entry in the PLT for the first function call, and one of the first and second callee function entry points is the preferred callee function entry point.
地址 Armonk NY US