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

Method and system for loading and debugging relocatable program

A technology of relocation and program loading, applied in the field of communications, to meet development requirements, save time, and improve application development efficiency

Active Publication Date: 2010-05-12
ZTE CORP
View PDF2 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, currently existing debugging tools cannot directly load relocatable files for debugging

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 system for loading and debugging relocatable program
  • Method and system for loading and debugging relocatable program
  • Method and system for loading and debugging relocatable program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] The core idea of ​​the present invention is: first load relocatable program in memory according to the order of input segments in ARM (Advanced RISC Machines, advanced RISC processor technology) image file, then compile this relocatable program through ARM The linker compiles and links to generate an executable file, and loads it into the debugging tool to obtain the symbol information of the relocatable program, so as to realize the loading and debugging of the dynamically loaded relocatable program.

[0057] Since the process of dynamically loading a relocatable program is to extract the relocatable program from the "text (code) segment", "data (data) segment", and "bss (uninitialized data) segment" into the memory and then link process, so the symbol table of the loaded relocatable file is invisible, and the dynamic program cannot be visually debugged. Therefore, it is necessary to generate an executable file from a relocatable file, so as to be loaded into a debuggi...

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 and a system for loading and debugging a relocatable program. The debugging method comprises the following steps: loading the relocatable program according to the sequence of input sections in an ARM mapping file; compiling and interlinking the loaded relocatable program to generate an executable file; and loading the executable file in a debugging tool to realize the debugging of the relocatable program. The method and the system realize the debugging of the dynamically loaded dynamic program, and solve the problems that the symbol information of the loaded relocatable program cannot be acquired and code debugging cannot be directly carried out when the relocatable program is dynamically loaded.

Description

technical field [0001] The invention relates to the communication field, in particular to a method and system for loading and debugging a dynamically loaded relocatable program in an embedded system. Background technique [0002] With the development of science and technology, people's demand for mobile phones shows a PC (Personal Computer, personal computer) trend, and more and more applications are required. At present, most smart phones have implemented dynamic loading technology, which is similar to dynamic link libraries (Windows) or dynamic shared files (Linux) on PCs, which can dynamically load applications; most non-smart phones have not yet implemented dynamic loading technology. Since dynamic loading technology can not only improve the efficiency of software development, save hardware resources by loading on demand, but also meet the needs of telecom operators to continuously expand additional value-added services and mobile phone users to download and use new func...

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/445G06F11/36
CPCG06F11/362G06F9/44521G06F11/36G06F11/3624
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