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

Compiling method and device for program linking

A compiling method and program linking technology, applied in code compiling, program code conversion, etc., can solve the problems of low overhead, inflexibility, coarse granularity, etc., and achieve the effect of improving randomness, improving security, and reducing the possibility of

Active Publication Date: 2020-12-08
ZTE CORP
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the system starts the program, the base address of each component (main program, dynamic library, stack) in the program is randomized. Although such a randomization process is simple to implement and has low overhead, it also has the following problems: ① The granularity is coarse, the address distribution inside the components is still fixed, the attacker can still call the operating system interface, obtain the starting address of each component, and combine brute force and relative addresses to carry out the attack
②It is not flexible enough, either all programs in the system use address randomization, or none of them use address randomization, and this function cannot be enabled according to the characteristics and security requirements of the application itself
③The selection of random numbers is determined by the system, and the generation of some random numbers is also related to the system time. It is easier for an attacker to crack after obtaining the system's random number generation rules and system time

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
  • Compiling method and device for program linking
  • Compiling method and device for program linking
  • Compiling method and device for program linking

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the following will describe in detail with reference to the drawings and specific embodiments.

[0056] Embodiments of the present invention provide a compiling method for program linking, such as figure 2 As shown, the compilation method includes:

[0057] Step S10, obtaining the file to be linked, and splitting the sections in the file to be linked according to the function or variable symbols in the file to be linked to obtain multiple input sections;

[0058] Step S11, randomly assigning an index value to each of the input sections;

[0059] Step S12, according to the index value of each of the input sections, merge the corresponding function or variable symbols into a link output file.

[0060] After obtaining the file to be linked, split each section of the file to be linked to obtain the split input section, the number of function or varia...

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

Provided are a compiling method and device for program linking, the compiling method comprising: obtaining a file to be linked, and splitting, according to a function or variable symbol in the file, sections in the file to obtain a plurality of input sections (S10); randomly assigning an index value to each of the input sections (S11); and merging, according to the index value of each of the input sections, the corresponding function or variable symbol into a link output file (S12). The compiling method for program linking can further improve randomness of a function and variable symbol in a program by splitting the function and variable symbol in a file and then performing randomization thereon, thereby reducing a possibility of a program being successfully attacked, and improving program security.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a compiling method and device for program linking. Background technique [0002] With the rapid development of information technology, using a wide open network environment for communication has become the trend of the times. While the network provides development and shared resources, there are inevitably security risks. If there are loopholes in the computer software system (operating system, shared library, middleware, application program), attackers who are familiar with the system can exploit these loopholes through the network. to execute malicious code and perform illegal operations. [0003] A prerequisite for attacking the system is that the attacker has a certain understanding of the system, especially the code address space distribution of the program, and then can control the system by making the process execute the attacker's preset attack code through carefully c...

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/41
Inventor 谢宝友王德强
Owner ZTE CORP
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