Unlock instant, AI-driven research and patent intelligence for your innovation.

Code repositioning method and device

A relocation and code technology, applied in the field of code relocation methods and devices, can solve problems such as inability to satisfy reverse analysis, difficulty in determining static link target code address parameters, etc.

Pending Publication Date: 2022-04-08
BEIJING BYTEDANCE NETWORK TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Static linking usually needs to link the same areas in each compiled module together to become an executable file. Since the object file in the static library before static linking is not an executable unit, the object file will not be calculated before the static linking is completed. Therefore, it is difficult to determine the address parameters of the target code before static linking, which cannot meet the needs of reverse analysis of target files before static linking

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
  • Code repositioning method and device
  • Code repositioning method and device
  • Code repositioning method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only It is a part of the embodiments of the present disclosure, but not all of them. The components of the disclosed embodiments generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Accordingly, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed disclosure, but merely represents selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those ski...

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 provides a code relocation method and device, and the method comprises the steps: firstly obtaining a to-be-relocated target file, and reading a loading command list corresponding to a target code from the target file; wherein the target file is used for generating an executable file through a static link; then, on the basis of the loading command list, searching a relocation information list corresponding to the target code from the target file; then, based on the relocation information list, determining a target address calculation mode and address parameters of the target code; and finally, calculating the address parameter by using the target address calculation mode to obtain address information after the target code is repositioned. According to the method, the target address calculation mode and the address parameter of the target code are determined through the relocation information list, the address parameter is calculated by utilizing the target address calculation mode, the relocated address information is obtained, and the address information of the target code can be determined without a static link.

Description

technical field [0001] The present disclosure relates to the field of computer technology, and in particular, to a code relocation method and device. Background technique [0002] In the process of application development, the code is usually placed in multiple source files, and these source files are not independent, there will be a variety of dependencies, such as one source file may need to call another source file defined functions, but each source file is compiled independently. To this end, the object files generated by compiling these source files need to be linked to form an executable program. The linking process is static linking. [0003] Static linking usually needs to link the same areas in each compiled module together to become an executable file. Since the object file in the static library before static linking is not an executable unit, the object file will not be calculated before the static linking is completed. Therefore, it is difficult to determine the...

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 Applications(China)
IPC IPC(8): G06F8/74
Inventor 韦超
Owner BEIJING BYTEDANCE NETWORK TECH CO LTD