Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and apparatus for loading dynamic shared object

A technology of dynamic sharing and objects, applied in the field of communication, can solve the problem of inability to load new dynamic shared objects, and achieve the effect of strong practicability, wide application, and freedom from dependence

Active Publication Date: 2016-04-27
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In view of this, the embodiment of the present invention provides a method and device for loading a dynamic shared object to solve the technical problem that a new dynamic shared object cannot be loaded when the source code of the executable file is unknown

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and apparatus for loading dynamic shared object
  • Method and apparatus for loading dynamic shared object
  • Method and apparatus for loading dynamic shared object

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0027] The embodiment of the present invention relates to a method and device for loading a dynamic shared object, which can be applied to operating systems such as NeXTSTEP, OPENSTEP or MacOSX, and the central processing unit can be 32-bit or 64-bit, etc., and the executable files and dynamic shared objects involved are Mach-O format.

[0028] see figure 1 , an embodiment of the present invention provides a method for loading a dynamic shared object, including:

[0029] 101: Obtain information about a dynamic shared object to be loaded.

[0030] There may be one or more dynamic shared objects to be loaded, which is not specifically limited in this embodiment. The information of the dynamic shared object at least includes: the path ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and apparatus for loading a dynamic shared object, and belongs to the communication field. The method comprises following steps: acquiring the information of a dynamic shared object to be loaded; generating a loading command according to the information of the dynamic shared object; searching for a loading command list in an executable file; and adding the loading command to the designated position in the loading command list so as to obtain a new executable file. The apparatus comprises an acquisition module, a generation module, a search module and a modification module. According to the embodiment of the invention, a new dynamic shared object can be loaded under a condition that source codes of the executable file is unknown, so that the source codes of the executable file are not needed, recompilation through a compiler is not needed, the dependence on the source codes of the executable file can be eliminated, and therefore the method and the apparatus are highly practical and can be more widely applied.

Description

technical field [0001] The invention relates to the communication field, in particular to a method and device for loading dynamic shared objects. Background technique [0002] Mach-O is an acronym for the MachObject file format, which is a file format for executables, object code, dynamic shared objects, and core dumps. Operating systems such as NeXTSTEP, OPENSTEP, and MacOSX all use this format as their native executable, object code, and dynamic shared object format. [0003] Dynamic Shared Object (Dynamic Shared Object, referred to as DSO) is a library containing code and data that can be used by multiple programs at the same time, not an executable file. Multiple applications can simultaneously access the contents of a single DSO copy in memory. [0004] A Mach-O executable can load a Mach-O dynamic shared object. When a new dynamic shared object needs to be loaded, the program source code of the executable file is usually modified first, and then recompiled with a co...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/445
Inventor 许汉杰
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products