SOC OV788开发:5.cpu 大小端判断
SOC OV788开发:5.cpu 大小端判断
big endian, OV788 is big
HI3518e is little
1.HI3518e
linux@ubuntu:~/data/work/HIS3518e_new/HIS3518e/third_ko/hi_dmac$ file hi_dmac.o
hi_dmac.o: ELF 32-bit LSB relocatable, ARM, version 1 (SYSV), not stripped
linux@ubuntu:~/data/work/HIS3518e_new/HIS3518e/third_ko/hi_dmac$ readelf -h hi_dmac.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: 58032 (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: 69
Section header string table index: 66
2.ov78
.linux@ubuntu:~/sdk_ov788/OV788_SDK_52786_1396/Firmware/OV788_SDK_src.52791.1396/lib_r2mp$ file libusb_chip.rel
libusb_chip.rel: ELF 32-bit MSB relocatable, version 1 MathCoPro/FPU/MAU Required, not stripped
linux@ubuntu:~/sdk_ov788/OV788_SDK_52786_1396/Firmware/OV788_SDK_src.52791.1396/lib_r2mp$ readelf -h libusb_chip.rel
ELF Header:
Magic: 7f 45 4c 46 01 02 01 00 03 00 00 00 00 00 00 00
Class: ELF32
Data: 2’s complement, big endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 3
Type: REL (Relocatable file)
Machine: OpenRISC
Version: 0x1
Entry point address: 0x0
Start of program headers: 0 (bytes into file)
Start of section headers: 4428 (bytes into file)
Flags: 0x1
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: 40
Section header string table index: 37
文章来源: blog.csdn.net,作者:悟空胆好小,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/xushx_bigbear/article/details/123079167
- 点赞
- 收藏
- 关注作者
评论(0)