我正在写一个剧本,用来分析小精灵的记忆。 更具体地说:代码大小和数据大小。
>mips-mti-elf-size.exe -A -x -t file.elf section size addr .sec(1) .sec(2) . .sec(i) .sec(n) Total 0x-----
我还可以检查总文本大小或总数据大小。 是否有办法决定每一秒(i)是代码还是数据?
使用mips-mti-elf-readelf.exe:
mips-mti-elf-readelf.exe -S file.elf
这将返回:
[Nr] Name Type Addr Off Size ES Flg Lk Inf Al [ 0] NULL 00000000 000000 000000 00 0 0 0 [ 1] .secName 9014d000 00d000 000480 00 AX 0 0 4096 ...