A kind of method and device for loading elf 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: 2019-03-08
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF1 Cites 0 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
  • A kind of method and device for loading elf file
  • A kind of method and device for loading elf file
  • A kind of method and device for loading elf file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0043] Please refer to figure 1 , figure 1 It is a schematic flowchart of an embodiment of a method for loading an ELF file having an 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 can include entry marks and descriptions for each function to form machine executable instructions. When the program is to be executed, it needs to be linked. Linking is to chain multiple .o files into one executable file.

[0046] In addition to relocatable object files, ELF file...

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, apparatus and device for dynamically loading an executable and linking format (ELF) file, and a computer storage medium. The method comprises: parsing a static library file in an ELF file to obtain an object file (101); extracting an effective segment from the object file, and recording effective segment information (102); and loading the effective segment, and separately establishing an object mapping table and a function mapping table for objects and functions in the object file to re-position the objects and the functions in the loaded effective segment (103). By means of the method and device for dynamically loading an ELF file provided in the solution, the troubles of an embedded system needing to depend on a specific instruction set when the embedded system parses and loads an ELF file and the embedded system is not be suitable for all embedded processor architectures in the prior art can be eliminated, applications of multiple ELF files can be simultaneously operated under a specific processor system structure, and dynamic linking can be realized, thereby greatly reducing a file volume generated by using static linking before, and reducing power consumption.

Description

【Technical Field】 [0001] The present invention relates to the computer field, 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. Since the existing embedded operating system uses static linking to generate executable files for loading ELF files, and burns the executable files directly into the memory (Flash) by burning, these processes must It is done under the ARM instruction set, and some processors do not use the ARM instruction set, and do not support the switch from the instruction set it uses to the ARM instruction set, so the existing technology cannot provide the loading of ELF files for such processors . [Content of the invention] [0003] The present invention provides a method and device for loading ELF files, so as to solve the problem that ELF files cannot be...

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/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