2017-05-18 45 views
0

我试图用-h选项运行readelf,它显示两个名为Version的字段,其中都有数字1。readelf显示两个版本号

它说其中一个字段中的版本1(当前)和另一个字段中的版本0x1。

这两个字段的意义是什么?

ELF Header: 
    Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 
    Class:        ELF32 
    Data:        2's complement, little endian 
    Version:       1 (current) 
    OS/ABI:       UNIX - System V 
    ABI Version:      0 
    Type:        EXEC (Executable file) 
    Machine:       <unknown>: 0xFFFF 
    Version:       0x1 
    Entry point address:    0x0 
    Start of program headers:   52 (bytes into file) 
    Start of section headers:   2384 (bytes into file) 
    Flags:        0x0 
    Size of this header:    52 (bytes) 
    Size of program headers:   32 (bytes) 
    Number of program headers:   5 
    Size of section headers:   40 (bytes) 
    Number of section headers:   11 
    Section header string table index: 10 

回答

0

它会显示两个字段叫做版本

两个版本:一个是e_ident的一部分,标识ELF格式本身。另一个是e_version并标识“目标文件版本”。

我不知道这些字段中的任何一个有任何更改,因此在实践中它们始终都是1.