Method and device for loading ELF (Executable and Linking Format) file

A technology for loading devices and files, which is applied in the computer field and can solve problems such as the inability to record ELF files

Active Publication Date: 2016-01-06
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF1 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The present invention proposes a method and device for loading ELF files, so as to solve the problem that ELF files cannot be recorded in some embedded systems in the prior 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
  • Method and device for loading ELF (Executable and Linking Format) file
  • Method and device for loading ELF (Executable and Linking Format) file
  • Method and device for loading ELF (Executable and Linking Format) file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0043] Please refer to figure 1 , figure 1 It is a schematic flow chart of an embodiment of a method for loading an ELF file in executable and link format provided by the present invention. Such as figure 1 As shown, the process includes:

[0044] 101: Parse the static library (.a) file in the ELF file to obtain the object file (.o).

[0045] The object file (.o) of the present invention is a redirectable file saved in the ELF format, and the content in the object file may include entry marks and descriptions of various functions to form machine-executable instructions. When the program is to be executed, it also needs to be linked (link). Linking is to link multiple .o files into one executable file.

[0046] In addition to relocatable objec...

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 method and a device for dynamically loading an ELF (Executable and Linking Format) file. The method comprises the following steps: analyzing a static library file in the ELF file to obtain an object file; extracting an effective segment from the object file; and loading the effective segment, and independently establishing an object mapping table and a function mapping table for objects and functions in the object file for re-positioning the objects and the functions in the loaded effective segment. The method and the device for loading the ELF file can eliminate the troubles in the prior art that an embedded system needs to depend on a specific instruction set when the embedded system analyzes and loads the ELF file and the embedded system can not be suitable for all embedded processor architectures, the applications of a plurality of ELF files can be simultaneously operated under a specific processor system structure, dynamic linking can be realized, so that file volume generated by the adoption of static linking before can be greatly reduced, and power consumption is reduced.

Description

【Technical field】 [0001] The invention relates to the field of computers, in particular to a method and device for loading ELF files. 【Background technique】 [0002] ELF (Executable and Linking Format) with executable and linking format is an object file format used to define the content and format of different types of object files (Objectfiles). Because the existing embedded operating system adopts static linking method to generate executable file for the loading of ELF file, and adopts the mode of burning to directly burn the executable file in the internal memory (Flash), these processing procedures must It is completed under the ARM instruction set, and some processors do not use the ARM instruction set, and do not support switching from the instruction set it uses to the ARM instruction set, so the existing technology cannot provide ELF file loading for such processors . 【Content of invention】 [0003] The invention provides a method and device for loading ELF file...

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/445
Inventor 秦松陈鑫位广军马家智桂敬文王博通王晓卿张洪卫常磊张治李新开
Owner BEIJING BAIDU NETCOM SCI & TECH CO LTD
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