Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2014-06-25
BEIJING SENSESHIELD TECH
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0028] Most of the object file formats of existing compilers are public, such as the object file format of Microsoft Visual C++ is COFF format; the object file format of CLANG and GCC is ELF format (other formats can also be output, such as COFF, but there are many different, not compatible); the object file format of C++Builder and Delphi is OMF format

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
  • Cross-platform object file multiplexing method
  • Cross-platform object file multiplexing method
  • Cross-platform object file multiplexing method

Examples

Experimental program
Comparison scheme
Effect test

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

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 cross-platform object file multiplexing method. The method comprises the following steps that S1, a first object file is read, and the file structure is analyzed; S2, using symbols as the unit, the first object file is decomposed into symbols, data of all the symbols and relocation information according to analysis results; S3, the symbolic name of the first object file is updated; S4, all the symbols, the data of the symbols and the relocation information which are obtained by decomposing the first object file are constructed into a third object file according to the file format of a second object file. According to the cross-platform object file multiplexing method, compilers do not need to be changed, only the object files are processed, and the object files generated by different compilers can be multiplexed.

Description

technical field [0001] The invention relates to the field of computers, in particular to a cross-platform object file multiplexing method. Background technique [0002] The object files of the same programming language are shared / reused between different compilers or even between different languages. For example, the C language object files have elf format, coff format and omf format. In software protection, it is an effective method to use a custom compiler (an open source compiler is generally used to save time and cost) to compile and process some source files to generate encrypted code. Software development requires a complete set of development tools, including text editors, compilers, assemblers, linkers, etc. For software protection tool developers, it is uneconomical and unnecessary to develop such a set of tools. It is a practical method to match the software protection tools with the development tools. For example, Microsoft Visual Studio is a set of commonly use...

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): G06F17/30G06F9/44
CPCG06F8/41G06F8/427
Inventor 孙吉平韩勇
Owner BEIJING SENSESHIELD TECH