Linux文件命令:SYSV意味着什么?
发布时间:2020-12-13 19:46:07 所属栏目:Linux 来源:网络整理
导读:我正在挖掘两个传统的交叉编译ARM Linux版本.除了“使用此VM映像构建源”之外没有太多文档.文件命令输出之间的唯一区别是存在“(SYSV)” # file ExecutableExecutable: ELF 32-bit LSB executable,ARM,version 1 (SYSV) ... 根据字符串中是否存在SYSV,我应该
我正在挖掘两个传统的交叉编译ARM
Linux版本.除了“使用此VM映像构建源”之外没有太多文档.文件命令输出之间的唯一区别是存在“(SYSV)”
# file Executable Executable: ELF 32-bit LSB executable,ARM,version 1 (SYSV) ... 根据字符串中是否存在SYSV,我应该能够假设什么? 解决方法
如果看到(SYSV)字符串,则表示ELF头中的e_ident [EI_OSABI]字段设置为0.从
ELF spec (PDF link)开始:
Table 5. Operating System and ABI Identifiers,e_ident[EI_OSABI] Name Value Meaning ELFOSABI_SYSV 0 System V ABI ELFOSABI_HPUX 1 HP-UX operating system ELFOSABI_STANDALONE 255 Standalone (embedded) application 我的本地计算机的/usr/share / file / magic / elf文件有一个更长的列表: # Up to now only 0,1 and 2 are defined; I've seen a file with 0x83,it seemed # like proper ELF,but extracting the string had bad results. >4 byte <0x80 >>8 string > |