Home > Operation and Maintenance > Linux Operation and Maintenance > What is the format of linux software?

What is the format of linux software?

WBOY
Release: 2022-04-12 17:19:18
Original
3775 people have browsed it

In Linux, the format of the software is "ELF"; ELF is an executable connection file format, mainly used to describe the file structure, and is the default target file format of Linux, SVR4 and "Solaris2.0"; ELF The definition of sections and the support of the GNU tool chain make it very flexible and supports dynamic linking of shared libraries.

What is the format of linux software?

#The operating environment of this article: linux7.3 system, Dell G3 computer.

What is the format of Linux software

Under Linux, program software does not have an extension.

But there is a format, called ELF. (Mainly describing the file structure, most people don't need to pay attention to it)

ELF (Executable and Linkable Format) is an executable link file format. It is a relatively complex file format, but it is widely used. Compared with other executable files (a.out, cof) under Linux, its section definition and the support of the gnu tool chain make it very flexible. It saves enough system-related information to enable it to support different platforms. Cross-compilation and cross-linking on the computer are highly portable. At the same time it supports dynamically linked shared libraries during execution.

ELF file introduction

ELF (Executable and Linkable Format) is the executable link file format. It is the default target file format for Linux, SVR4 and Solaris2.0. Currently The Standards Interface Committee TIS has standardized ELF as a portable object file format that runs on 32-bit Intel system microcomputers and is compatible with a variety of operating systems. Analyzing elf files helps to understand some important system concepts, such as program compilation and linking, program loading and running, etc.

(1)ELF file type:

Types of ELF files:

a) Relocatable files: User and other target files together Create executable files or shared object files, such as lib*.a files.

b) Executable file: used to generate a process image and load it into memory for execution, such as a compiled executable file a.out.

c) Shared object file: used to generate elf object files together with other shared object files or relocatable files or to create process images together with executable files, such as lib*.so files.

(2) Function of ELF file:

ELF file participates in the connection of the program (creating a program) and the execution of the program (running a program), so it can be used from different Looking at elf format files from the perspective of Collection, program header table optional.

b) If used for loading and execution (executable files), the loader will regard the elf file as a collection of segments described by the program header table. One segment may contain multiple sections, and the section header table Optional.

c) If it is a shared file, it contains both.

Related recommendations: "

Linux Video Tutorial

"

The above is the detailed content of What is the format of linux software?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template