SOC OV788开发:5.cpu 大小端判断

举报
aiot_bigbear 发表于 2022/09/25 00:45:24 2022/09/25
【摘要】 SOC OV788开发:5.cpu 大小端判断 big endian, OV788 is big HI3518e is little 1.HI3518e linux@ubuntu:~/data/w...

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

【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。