Check patentability & draft patents in minutes with Patsnap Eureka AI!

Method for clipping relocatable ELF files in embedded system

An embedded system and relocation technology, applied in the field of ELF files, can solve problems such as redundant information and achieve high resource utilization

Inactive Publication Date: 2010-01-27
ZHEJIANG UNIV +1
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Moreover, the symbol table in the ELF file contains all the symbol information involved in the program itself, and there are also some redundant information

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 for clipping relocatable ELF files in embedded system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] As shown in the accompanying drawings, in the following implementation examples, a method for tailoring relocatable ELF files based on the AVR platform will be provided, but it can be understood that the method of the present invention is not limited to a specific platform.

[0021] 1) In the original ELF file, the data types are all based on the 32-bit environment, defined as follows:

[0022] Name Size Alignment Purpose

[0023] ==== ==== =================

[0024] Elf32_Addr 4 4 Unsigned program address

[0025] Elf32_Half 2 2 Unsigned medium integer

[0026] Elf32_Off 4 4 Unsigned file offset

[0027] Elf32_Sword 4 4 Signed large integer

[0028] Elf32_Word 4 4 Unsigned large integer

[0029] unsigned char 1 1 Unsigned small integer

[0030] On the avr platform, the data type is 16 bits, and the data type is redefined as:

[0031] Name Size Alignment Purpose

[0032] ==== ==== =================

[0033] Elf16_Addr 2 2 Unsigned program address

[0034] Elf1...

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 of repositioning an ELF file by cutting in an embedded system. According to a systematic structure depended by the original EFL file, the data type and the structure body required in the EFL file are redefined; according to the repositioning information, relevant repositioning signs are extracted so as to organize a new symbol table and a new character string table; a new data structure definition replaces the original data structure, the new symbol table and the new character string table replace the original symbol table and the original character string table and the rest of unchanged contents are copied in a new file. Irrelevant to a platform, the method can be applied to various embedded platforms. The method has the advantage that the repositioned ELF file can be more compact and more miniaturized by cutting a standard ELF file format on the resource-limited embedded system, thus changing the data type of the EFL file and deleting some redundant sign information. As for resource-limited embedded systems, the method can ensure that the system has more efficient resource utilization rate.

Description

technical field [0001] The invention relates to the problem of the file format on the embedded system, in particular to a method for cutting relocatable ELF files in the embedded system. Background technique [0002] The ELF (Executable and Linking Format) file format was developed and released by the UNIX System Laboratory as the Application Binary Interface (Application Binary Interface). The data is used to create an executable file or a shared file together with other target files, and can also be released as a module, such as a Linux kernel module; an executable (executable) file holds a file for execution. program, which specifies how to create the program process image; a shared ELF file holds the code and appropriate data to be linked by the linker. [0003] As Linux and Linux-based cross-compilation environments are more and more widely used in various embedded systems, ELF file formats are also increasingly appearing on various embedded platforms. In particular, ...

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/45
Inventor 陈纯卜佳俊董玮腾国栋
Owner ZHEJIANG UNIV
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More