常用交叉工具链
查询应用程序依赖的动态链接库(前提是动态交叉编译的elf文件):
[root@redhat6 test]# arm-linux-readelf -d memio.elf
Dynamic section at offset 0x6f0 contains 24 entries:
Tag Type Name/Value
0x00000001 (NEEDED) Shared library: [libc.so.6]
0x0000000c (INIT) 0x8374
0x0000000d (FINI) 0x862c
查询应用程序的机器属性:
[root@redhat6 test]# arm-linux-readelf -a memio.elf
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: ARM
Version: 0x1
Entry point address: 0x841c