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

Repositioning method and device, electronic equipment and readable medium

An electronic device and relocation technology, which is applied in the direction of program control device, program control design, electrical digital data processing, etc., can solve the problems of redundant relocation table and low efficiency of relocation operation

Active Publication Date: 2021-04-09
LOONGSON TECH CORP
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a relocation method, device, electronic device, and readable medium to solve the problems of low relocation operation efficiency and lengthy relocation table in the related art

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
  • Repositioning method and device, electronic equipment and readable medium
  • Repositioning method and device, electronic equipment and readable medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art. figure 1 is a flow chart of the steps of a relocation method provided by an embodiment of the present invention. The method can be, for example, figure 1 As shown, the method may include:

[0058] Step 101 , when loading a target portable executable PE file, check each relocation entry in a preset relocation table of the target PE file.

[0059] In the embodiment of the present invention, the target PE file may be a PE file that needs to be load...

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 relocation method and device, electronic equipment and a readable medium, and the method comprises the steps: detecting each relocation table item in a preset relocation table of a target PE file when the target PE file is loaded; if it is detected that the relocation type corresponding to the relocation table entry is the first relocation type, taking the relocation table entry as the first relocation table entry, and performing relocation operation on the target instruction and the combinable instruction corresponding to the target instruction according to the first relocation table entry, wherein the first relocation type is used for indicating to perform relocation operation on the target instruction and the combinable instruction at the same time, and the first relocation table item is a relocation table item corresponding to the target instruction and the combinable instruction together. According to the method, the common corresponding relocation table items are set for the multiple instructions, so that the length of the relocation table can be reduced to a certain extent, relocation operation on the multiple instructions can be realized according to the common corresponding relocation table items, and the relocation operation efficiency is improved to a certain extent.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of electronic equipment, and in particular, to a relocation method and device, electronic equipment and a readable medium. Background technique [0002] At present, because the instructions in the Portable Execute file may not be able to run at the previously specified address during actual operation, therefore, the instructions are often relocated to ensure that the instructions can be executed normally. [0003] In the prior art, in order to realize the relocation operation, one or more relocation types are often set for each instruction, and one relocation entry is set for each instruction. Correspondingly, when performing a relocation operation, it is necessary to perform a relocation operation for each instruction one by one with respect to the relocation entry corresponding to each instruction. In this way, the efficiency of the relocation operation is low and the relocation ...

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): G06F9/445
CPCG06F9/44542Y02D10/00
Inventor 徐文瑞张宝祺程璐璐
Owner LOONGSON TECH CORP