Cross-platform object file multiplexing method
A target file, cross-platform technology, applied in software engineering design, special data processing applications, program code conversion, etc., can solve incompatibility and other problems, and achieve the effects of saving costs, improving compatibility, and simplifying operations
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0084] In this embodiment, the object file 1 is in elf format, the object file 2 is in coff format, and the programming language is C language. In terms of specific implementation, this embodiment uses an intermediate structure to describe and convert symbols and relocations.
[0085]
[0086]
[0087] 1. Analyze each element of the object file 1, and the analysis result is represented by each intermediate structure. An ELF file is described with the following structure:
[0088]
[0089]
[0090] File loading and basic composition analysis are based on the technical knowledge of the ELF file format, so I won't repeat them here.
[0091] 2. Decompose the target file 1.
[0092] Extract each element from the ElfObjectFile structure and convert it into a VmObject table, as follows:
[0093]
[0094]
[0095]
[0096]
[0097] 3. Update the symbol name.
[0098] Different object file formats have different symbol name naming methods. Generally, functio...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 