linux下ELF文件和动态库,静态库分析
NULL 00000000 000000 000000 00 0 0 0
[ 1] .text PROGBITS 00000000 000034 000038 00 AX 0 0 4 [ 2] .rela.text RELA 00000000 000388 000024 0c 9 1 4 [ 3] .data PROGBITS 00000000 00006c 000000 00 WA 0 0 1 [ 4] .bss NOBITS 00000000 00006c 000000 00 WA 0 0 1 [ 5] .rodata PROGBITS 00000000 00006c 000014 00 A 0 0 4 [ 6] .note.GNU-stack PROGBITS 00000000 000080 000000 00 0 0 1 [ 7] .comment PROGBITS 00000000 000080 000040 00 0 0 1 [ 8] .shstrtab STRTAB 00000000 0000c0 000052 00 0 0 1 [ 9] .symtab SYMTAB 00000000 0002cc 0000a0 10 10 8 4 [10] .strtab STRTAB 00000000 00036c 00001c 00 0 0 1
Key to Flags: W (write), A (alloc), X (execute), M (merge), S (strings) I (info), L (link order), G (group), x (unknown) O (extra OS processing required) o (OS specific), p (processor specific) [ygliu@publicPC-6 home]$ ppc_85xx-objdump -d -j .text myprintf.o myprintf:文件格式 elf32-powerpc 反汇编 .text 节: 00000000 <myprintf>: 0: 94 21 ff f0 stwu r1,-16(r1) 4: 7c 08 02 a6 mflr r0 8: 93 e1 00 0c stw r31,12(r1) c: 90 01 00 14 stw r0,20(r1) 10: 7c 3f 0b 78 mr r31,r1 14: 3d 20 00 00 lis r9,0 18: 38 69 00 00 addi r3,r9,0 1c: 48 00 00 01 bl 1c <myprintf 0x1c> 20: 81 61 00 00 lwz r11,0(r1) 24: 80 0b 00 04 lwz r0,4(r11) 28: 7c 08 03 a6 mtlr r0 2c: 83 eb ff fc lwz r31,-4(r11) 30: 7d 61 5b 78 mr r1,r11 34: 4e 80 00 20 blr 其中-d可以看到反汇编结果 -j 指定需要查看的节区.
|
||
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |