这是我的objdump -d
带有 malloc 调用和周围代码的片段。这个二进制文件被剥离了。
dbgLab.bin: file format elf32-i386
080483d0 <malloc@plt>:
80483d0: ff 25 04 a0 04 08 jmp *0x804a004
80483d6: 68 08 00 00 00 push $0x8
80483db: e9 d0 ff ff ff jmp 80483b0 <printf@plt-0x10>
Disassembly of section .text:
804853e: 55 push %ebp
804853f: 89 e5 mov %esp,%ebp
8048541: 83 e4 f0 and $0xfffffff0,%esp
8048544: 83 ec 20 sub $0x20,%esp
8048547: c6 44 24 1f cf movb $0xcf,0x1f(%esp)
804854c: c7 04 24 0d 00 00 00 movl $0xd,(%esp)
8048553: e8 78 fe ff ff call 80483d0 <malloc@plt>
8048558: 89 44 24 18 mov %eax,0x18(%esp)
804855c: 83 7d 08 02 cmpl $0x2,0x8(%ebp)
8048560: 7f 0c jg 804856e <strncmp@plt+0x12e>
8048562: c7 04 24 ff ff ff ff movl $0xffffffff,(%esp)
8048569: e8 92 fe ff ff call 8048400 <exit@plt>
804856e: 8b 45 0c mov 0xc(%ebp),%eax
8048571: 83 c0 04 add $0x4,%eax
8048574: 8b 00 mov (%eax),%eax
8048576: c7 44 24 08 0d 00 00 movl $0xd,0x8(%esp)