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

A method and device for implementing so files to call external functions

An external function and function technology, applied in the computer field, can solve the problem that the original SO file cannot call external functions, and achieve the effect of meeting the reinforcement requirements

Active Publication Date: 2020-02-28
三六零数字安全科技集团有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, for security reasons, many SO files are reinforced by adding shells, etc., so the reinforced SO files are not equivalent to the original SO files. Specifically, the original SO files are often loaded through the reinforced SO files. , so that the system no longer provides the original SO file with the memory address of the external function it needs to call, which also makes the original SO file unable to call the external function

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
  • A method and device for implementing so files to call external functions
  • A method and device for implementing so files to call external functions
  • A method and device for implementing so files to call external functions

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057]Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0058] figure 1 Shows a schematic flowchart of a method for implementing SO files to call external functions according to an embodiment of the present invention, such as figure 1 As shown, the method includes:

[0059] Step S110, obtaining the memory address of the specified function to be called by the SO file.

[0060] Step S120, establishing a mapping relationship between the specified function and the obtained memory address. ...

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 a device for SO files to call external functions. The method comprises the steps of getting memory addresses of the external functions which are needed to be called by the SO files, establishing mapping relations between specified functions and the obtained memory addresses, calling the specified functions from the corresponding memory addresses according to the mapping relations when the SO files need to call the specified functions. According to the technical scheme, when the SO files call the specified external functions, the calling process no longer depends on the memory addresses of the specified external functions provided by a system. The method and device are suitable for the SO files wrapped in a shell and meet the requirement of reinforcing the SO files.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and a device for realizing SO files calling external functions. Background technique [0002] Developers need to consider the functions implemented by the code when writing code, and business requirements often overlap. The code obtained by developing commonly used functions can usually be compiled into a library file for other codes to call, for example, Android The dynamic link library SO files often need to call functions in other system SO files. These functions not owned by this SO file are external functions. In the prior art, when this SO file calls these external functions, the system needs to help find the memory address of these external functions. Specifically, it needs to be declared in this SO file The file where the external function needs to be called, so that when the system loads this SO file, it will find out the memory address of the external functi...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/73G06F8/41
CPCG06F8/441G06F8/73
Inventor 吴乐
Owner 三六零数字安全科技集团有限公司
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