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

A method of extracting and organizing arm program relocation information

A relocation and program technology, which is applied in the field of extracting and organizing ARM program relocation information, can solve the problems of impracticability, high software consumption and high complexity, and achieve the effect of enriching software application methods

Active Publication Date: 2017-09-15
FUJIAN CENTM INFORMATION
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The software on products without an operating system is generally composed of pure machine instructions, and the compiler linker will not provide relocation information for it.
If the software without operating system continues to use the relocation information of Windows, Unix and other systems, it means that the software implementation needs to analyze the program file format, relocation information format, and relocation method on Windows, Unix and other systems. The complexity is high, and the software runtime consumption may also be relatively large
If it is required to generate relocation information in a specific format when compiling, the compiling linker must be modified, and ordinary enterprises cannot achieve this goal

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 of extracting and organizing arm program relocation information
  • A method of extracting and organizing arm program relocation information
  • A method of extracting and organizing arm program relocation information

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The relocation information includes two parts: the location of the instruction that needs to be relocated and the correction method during relocation.

[0022] The exact address information in the machine instructions of a software program is generated when the program is linked. There is a fact in the work of the compiler and linker: when several intermediate files, libraries, and components compiled in the same batch are linked twice with the same configuration information to obtain two overall programs, the target instructions of the two overall programs The flow is completely consistent; when several intermediate files, libraries, and components compiled in the same batch are linked twice with configuration information that is different in positioning configuration but identical in other configurations to obtain two overall programs, the target of the two overall programs The sequence of the instruction stream is exactly the same, only the address-related part of th...

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

A method for extracting and organizing ARM program relocation information, including three processes of secondary linking, extracting relocation information, and organizing relocation information, these three processes need to be integrated and executed during the process of compiling and linking ARM programs; The link process occurs after the first link of the ARM program is successfully completed and the original target file is generated; the second link process is to modify the original positioning configuration information of the program, and then use the modified positioning configuration information to re-create the intermediate file generated by the original compilation. Link. Its implementation process does not need to transform any existing development environment and tools. The extracted relocation information does not depend on any operating system and software environment, and can be easily applied to various products with the ARM processor as the core hardware platform. It is especially suitable for products that cannot run the operating system, so that it can realize the function of relocation when the program is running, thereby enriching the software application methods on these products.

Description

【Technical field】 [0001] The invention belongs to the technical field of computer software, and in particular relates to a method for extracting and organizing ARM program relocation information. 【Background technique】 [0002] In computer software, due to the dynamic loading of function libraries, dynamic loading and running of programs, etc., the address of the software target machine instruction at runtime is inconsistent with the address at the time of development and compilation. And some machine instructions in software need to use the runtime address information of other instructions to work properly. For example, the call of a function pointer, this software function needs to obtain the runtime address information of the function pointed to by the function pointer in the machine instruction. Therefore, when the addresses of the software target machine instructions are different during operation and development, the software must use relocation technology to correct ...

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): G06F9/44
Inventor 林志伟
Owner FUJIAN CENTM INFORMATION
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