Shared library conversion
AssigneeInternational Business Machines Corporation
InventorsHeng Wang, Tao Guan, Zhan Peng Huo, Sandhya Venugopala, Xiao Ling Chen
Life of this patent
Estimating the term…
Abstract
Converting shared libraries is provided. A shadow shared library is generated based on symbol information of each respective symbol of an original shared library. A symbol receiver that corresponds to the shadow shared library is generated. The symbol receiver corresponding to the shadow shared library and the original shared library are deployed as a microservice on a set of servers.
Claims19
A computer-implemented method for converting shared libraries, the computer-implemented method comprising:
- parsing, by a computer, using a binary utility, an original shared library to identify symbol information corresponding to each respective symbol of the original shared library, the symbol information includes a symbol name, a symbol entry address, and a symbol body size for each respective symbol of the original shared library;
- extracting, by the computer, the symbol information that includes the symbol name, the symbol entry address, and the symbol body size for each respective symbol of the original shared library;
- generating, by the computer, a shadow shared library based on the symbol information of each respective symbol of the original shared library;
- generating, by the computer, a symbol receiver that corresponds to the shadow shared library;
- and
- deploying, by the computer, the symbol receiver corresponding to the shadow shared library and the original shared library as a microservice on a set of servers.
A computer system for converting shared libraries, the computer system comprising:
- a communication fabric;
- a storage device connected to the communication fabric, wherein the storage device stores program instructions;
- and
- a processor connected to the communication fabric, wherein the processor executes the program instructions to:
- parse, using a binary utility, an original shared library to identify symbol information corresponding to each respective symbol of the original shared library, the symbol information includes a symbol name, a symbol entry address, and a symbol body size for each respective symbol of the original shared library;
- extract the symbol information that includes the symbol name, the symbol entry address, and the symbol body size for each respective symbol of the original shared library;
- generate a shadow shared library based on the symbol information of each respective symbol of the original shared library;
- generate a symbol receiver that corresponds to the shadow shared library;
- and
- deploy the symbol receiver corresponding to the shadow shared library and the original shared library as a microservice on a set of servers.
A computer program product for converting shared libraries, the computer program product comprising a computer-readable storage medium having program instructions embodied therewith, the program instructions executable by a computer to cause the computer to:
- parse, using a binary utility, an original shared library to identify symbol information corresponding to each respective symbol of the original shared library, the symbol information includes a symbol name, a symbol entry address, and a symbol body size for each respective symbol of the original shared library;
- extract the symbol information that includes the symbol name, the symbol entry address, and the symbol body size for each respective symbol of the original shared library;
- generate a shadow shared library based on the symbol information of each respective symbol of the original shared library;
- generate a symbol receiver that corresponds to the shadow shared library;
- and deploy the symbol receiver corresponding to the shadow shared library and the original shared library as a microservice on a set of servers.
Dependencies are inferred from the claim text.