linux查询静态库是arm平台还是x86平台

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux查询静态库是arm平台还是x86平台相关的知识,希望对你有一定的参考价值。

参考技术A X86

File: libcrypto.a(e_padlock.o)
ELF Header:
Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: REL (Relocatable file)
Machine: Advanced Micro Devices X86-64
Version: 0x1
Entry point address: 0x0
Start of program headers: 0 (bytes into file)
Start of section headers: 248 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 0 (bytes)
Number of program headers: 0
Size of section headers: 64 (bytes)
Number of section headers: 11
Section header string table index: 8

e_padlock.o: file format elf64-x86-64

ARM

File: libcrypto.a(gost_sign.o)
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: REL (Relocatable file)
Machine: ARM
Version: 0x1
Entry point address: 0x0
Start of program headers: 0 (bytes into file)
Start of section headers: 3508 (bytes into file)
Flags: 0x5000000, Version5 EABI
Size of this header: 52 (bytes)
Size of program headers: 0 (bytes)
Number of program headers: 0
Size of section headers: 40 (bytes)
Number of section headers: 12
Section header string table index: 9

gost_sign.o: file format elf32-little

以上是关于linux查询静态库是arm平台还是x86平台的主要内容,如果未能解决你的问题,请参考以下文章

依赖库是啥 各个平台下的 比如LINUX xp

linux 下C标准库是动态库还是静态库,还是两种库都提供了?

C语言Linux下动态库和静态库详解

请人帮忙用linux生成个arm平台的.ko文件

Linux下gcc生成和使用静态库和动态库详解

关于Linux静态库和动态库的分析