Method and device for dynamically loading relocatable file

A technology of dynamic loading and relocation, applied in the direction of program control device, program loading/starting, program code conversion, etc., can solve the problems of dynamic loading failure, dynamic application file running error, etc., saving time, saving hardware resources, improving The effect of software development efficiency

Active Publication Date: 2010-04-21
ZTE CORP
View PDF0 Cites 41 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the prior art, during the relocation process, when the address distance between the function caller and the callee is too

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
  • Method and device for dynamically loading relocatable file
  • Method and device for dynamically loading relocatable file
  • Method and device for dynamically loading relocatable file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The basic idea of ​​the present invention is to convert the short jump beyond the jump range into an effective short jump and a long jump, so as to realize relocatable dynamic loading when the function calling distance exceeds the jump range.

[0023] It should be noted that most of the embedded devices used in the present invention use ARM processors, and the dynamically loaded relocatable files use the link view of the Executable Linking Format (ELF, Executable and Linking Format). ELF format software. Wherein, the relocatable file is an object file compiled and generated by the ARMCC compiler on the PC side, including codes and data suitable for linking with other object files to create executable files or shared object files. The relocatable file has multiple formats such as Windows Portable Executable (PE, Portable Excutable) format and Unix / Linux ELF.

[0024]Here, according to the structure system of ARM (Advanced RISC Machine), the ARM linker provides some smal...

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 for dynamically loading a relocatable file, which comprises: resolving relocatable file acquisition information and acquiring a relocation target address and calculating an address to be relocated and a jump distance after fining a segmental region to be relocated; and judging if the jump distance exceeds a short jump range, wherein the relocation target address is filled in the address to be relocated for relocation and loading if the jump distance does not exceed the short jump range, or a veneer code segment is added to allow the jump exceeding the short jump range to indirectly jump to the relocation target address for relocation and loading. Correspondingly, the invention provides a relocation dynamic loading device, which comprises a resolution module, a calculation module, a search module, a judgment module and a relocation dynamic loading module. Therefore, method can realize relocation dynamic loading when a function calling distance exceeds ajump range.

Description

technical field [0001] The invention relates to an embedded microkernel operating system, in particular to a method and device for dynamically loading relocatable files. Background technique [0002] With the development of science and technology, the mobile phone presents a development trend of personal computer (PC), and more and more dynamic application files are required for it. Mobile phones are generally divided into smart phones and non-smart mobile phones (feather phones). The operating systems of smart mobile phones such as wince and ulinux have basically realized the dynamic loading technology, which is similar to Windows, which can dynamically load applications on PCs. The dynamic link library of the operating system, or the dynamic shared file of the Linux operating system; and most feather phones are developed based on the embedded microkernel operating system, and most embedded operating systems have not yet implemented dynamic loading technology. [0003] How...

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
IPC IPC(8): G06F9/445
CPCG06F9/445G06F8/54
Inventor 何海建武晓慧范伟
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products