科技行者

行者学院 转型私董会 科技行者专题报道 网红大战科技行者

知识库

知识库 安全导航

至顶网网络频道UNIX系统 目标文件初探

UNIX系统 目标文件初探

  • 扫一扫
    分享文章到微信

  • 扫一扫
    关注官方公众号
    至顶头条

UNIX(R) 系统中运行的程序遵守一种称为目标文件格式的精心设计。了解更多关于目标文件格式的内容,以及可以用来研究系统中目标文件的工具。

来源:chinaitlab 2007年12月27日

关键字: unix 系统安全

  • 评论
  • 分享微博
  • 分享邮件

在本页阅读全文(共8页)

080482e4 <call_gmon_start>:
 80482e4:       55                      push   %ebp
 80482e5:       89 e5                   mov    %esp,%ebp
 80482e7:       53                      push   %ebx
 80482e8:       e8 1b 00 00 00          call   8048308 <__i686.get_pc_thunk.bx>
 80482ed:       81 c3 87 12 00 00       add    $0x1287,%ebx
 80482f3:       83 ec 04                sub    $0x4,%esp
 80482f6:       8b 83 fc ff ff ff       mov    0xfffffffc(%ebx),%eax
 80482fc:       85 c0                   test   %eax,%eax
 80482fe:       74 02                   je     8048302 <call_gmon_start+0x1e>
 8048300:       ff d0                   call   *%eax
 8048302:       83 c4 04                add    $0x4,%esp
 8048305:       5b                      pop    %ebx
 8048306:       5d                      pop    %ebp
 8048307:       c3                      ret

08048308 <__i686.get_pc_thunk.bx>:
 8048308:       8b 1c 24                mov    (%esp),%ebx
 804830b:       c3                      ret

0804830c <__do_global_dtors_aux>:
 804830c:       55                      push   %ebp
 804830d:       89 e5                   mov    %esp,%ebp
 804830f:       83 ec 08                sub    $0x8,%esp
 8048312:       80 3d 94 95 04 08 00    cmpb   $0x0,0x8049594
 8048319:       74 0c                   je     8048327 <__do_global_dtors_aux+0x1b>
 804831b:       eb 1c                   jmp    8048339 <__do_global_dtors_aux+0x2d>
 804831d:       83 c0 04                add    $0x4,%eax
 8048320:       a3 90 95 04 08          mov    %eax,0x8049590
 8048325:       ff d2                   call   *%edx
 8048327:       a1 90 95 04 08          mov    0x8049590,%eax
 804832c:       8b 10                   mov    (%eax),%edx
 804832e:       85 d2                   test   %edx,%edx
 8048330:       75 eb                   jne    804831d <__do_global_dtors_aux+0x11>
 8048332:       c6 05 94 95 04 08 01    movb   $0x1,0x8049594
 8048339:       c9                      leave
 804833a:       c3                      ret

0804833b <frame_dummy>:
 804833b:       55                      push   %ebp
 804833c:       89 e5                   mov    %esp,%ebp
 804833e:       83 ec 08                sub    $0x8,%esp
 8048341:       a1 a4 94 04 08          mov    0x80494a4,%eax
 8048346:       85 c0                   test   %eax,%eax
 8048348:       74 12                   je     804835c <frame_dummy+0x21>
 804834a:       b8 00 00 00 00          mov    $0x0,%eax
 804834f:       85 c0                   test   %eax,%eax
 8048351:       74 09                   je     804835c <frame_dummy+0x21>
 8048353:       c7 04 24 a4 94 04 08    movl   $0x80494a4,(%esp)
 804835a:       ff d0                   call   *%eax
 804835c:       c9                      leave
 804835d:       c3                      ret
 804835e:       90                      nop
 804835f:       90                      nop

08048360 <main>:
 8048360:       55                      push   %ebp
 8048361:       89 e5                   mov    %esp,%ebp
 8048363:       83 ec 08                sub    $0x8,%esp
 8048366:       83 e4 f0                and    $0xfffffff0,%esp
 8048369:       b8 00 00 00 00          mov    $0x0,%eax
 804836e:       83 c0 0f                add    $0xf,%eax
 8048371:       83 c0 0f                add    $0xf,%eax
 8048374:       c1 e8 04                shr    $0x4,%eax
 8048377:       c1 e0 04                shl    $0x4,%eax
 804837a:       29 c4                   sub    %eax,%esp
 804837c:       c7 04 24 80 84 04 08    movl   $0x8048480,(%esp)
 8048383:       e8 18 ff ff ff          call   80482a0 <puts@plt>
 8048388:       b8 00 00 00 00          mov    $0x0,%eax
 804838d:       c9                      leave
 804838e:       c3                      ret
 804838f:       90                      nop

08048390 <__libc_csu_init>:
 8048390:       55                      push   %ebp
 8048391:       89 e5                   mov    %esp,%ebp
 8048393:       57                      push   %edi
 8048394:       56                      push   %esi
 8048395:       31 f6                   xor    %esi,%esi
 8048397:       53                      push   %ebx
 8048398:       e8 6b ff ff ff          call   8048308 <__i686.get_pc_thunk.bx>
 804839d:       81 c3 d7 11 00 00       add    $0x11d7,%ebx
 80483a3:       83 ec 0c                sub    $0xc,%esp
 80483a6:       e8 cd fe ff ff          call   8048278 <_init>
 80483ab:       8d 83 20 ff ff ff       lea    0xffffff20(%ebx),%eax
 80483b1:       8d 93 20 ff ff ff       lea    0xffffff20(%ebx),%edx
 80483b7:       89 45 f0                mov    %eax,0xfffffff0(%ebp)
 80483ba:       29 d0                   sub    %edx,%eax
 80483bc:       c1 f8 02                sar    $0x2,%eax
 80483bf:       39 c6                   cmp    %eax,%esi
 80483c1:       73 16                   jae    80483d9 <__libc_csu_init+0x49>
 80483c3:       89 d7                   mov    %edx,%edi
 80483c5:       ff 14 b2                call   *(%edx,%esi,4)
 80483c8:       8b 45 f0                mov    0xfffffff0(%ebp),%eax
 80483cb:       83 c6 01                add    $0x1,%esi
 80483ce:       29 f8                   sub    %edi,%eax
 80483d0:       89 fa                   mov    %edi,%edx
 80483d2:       c1 f8 02                sar    $0x2,%eax
 80483d5:       39 c6                   cmp    %eax,%esi
 80483d7:       72 ec                   jb     80483c5 <__libc_csu_init+0x35>
 80483d9:       83 c4 0c                add    $0xc,%esp
 80483dc:       5b                      pop    %ebx
 80483dd:       5e                      pop    %esi
 80483de:       5f                      pop    %edi
 80483df:       5d                      pop    %ebp
 80483e0:       c3                      ret

080483e1 <__libc_csu_fini>:
 80483e1:       55                      push   %ebp
 80483e2:       89 e5                   mov    %esp,%ebp
 80483e4:       83 ec 18                sub    $0x18,%esp
 80483e7:       89 5d f4                mov    %ebx,0xfffffff4(%ebp)
 80483ea:       e8 19 ff ff ff          call   8048308 <__i686.get_pc_thunk.bx>
 80483ef:       81 c3 85 11 00 00       add    $0x1185,%ebx
 80483f5:       89 75 f8                mov    %esi,0xfffffff8(%ebp)
 80483f8:       89 7d fc                mov    %edi,0xfffffffc(%ebp)
 80483fb:       8d b3 20 ff ff ff       lea    0xffffff20(%ebx),%esi
 8048401:       8d bb 20 ff ff ff       lea    0xffffff20(%ebx),%edi
 8048407:       29 fe                   sub    %edi,%esi
 8048409:       c1 fe 02                sar    $0x2,%esi
 804840c:       eb 03                   jmp    8048411 <__libc_csu_fini+0x30>
 804840e:       ff 14 b7                call   *(%edi,%esi,4)
 8048411:       83 ee 01                sub    $0x1,%esi
 8048414:       83 fe ff                cmp    $0xffffffff,%esi
 8048417:       75 f5                   jne    804840e <__libc_csu_fini+0x2d>
 8048419:       e8 3a 00 00 00          call   8048458 <_fini>
 804841e:       8b 5d f4                mov    0xfffffff4(%ebp),%ebx
 8048421:       8b 75 f8                mov    0xfffffff8(%ebp),%esi
 8048424:       8b 7d fc                mov    0xfffffffc(%ebp),%edi
 8048427:       89 ec                   mov    %ebp,%esp
 8048429:       5d                      pop    %ebp
 804842a:       c3                      ret
 804842b:       90                      nop

0804842c <__do_global_ctors_aux>:
 804842c:       55                      push   %ebp
 804842d:       89 e5                   mov    %esp,%ebp
 804842f:       53                      push   %ebx
 8048430:       83 ec 04                sub    $0x4,%esp
 8048433:       a1 94 94 04 08          mov    0x8049494,%eax
 8048438:       83 f8 ff                cmp    $0xffffffff,%eax
 804843b:       74 12                   je     804844f <__do_global_ctors_aux+0x23>
 804843d:       bb 94 94 04 08          mov    $0x8049494,%ebx
 8048442:       ff d0                   call   *%eax
 8048444:       8b 43 fc                mov    0xfffffffc(%ebx),%eax
 8048447:       83 eb 04                sub    $0x4,%ebx
 804844a:       83 f8 ff                cmp    $0xffffffff,%eax
 804844d:       75 f3                   jne    8048442 <__do_global_ctors_aux+0x16>
 804844f:       83 c4 04                add    $0x4,%esp
 8048452:       5b                      pop    %ebx
 8048453:       5d                      pop    %ebp
 8048454:       c3                      ret
 8048455:       90                      nop
 8048456:       90                      nop
 8048457:       90                      nop
Disassembly of section .fini:

    • 评论
    • 分享微博
    • 分享邮件
    邮件订阅

    如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。

    重磅专题
    往期文章
    最新文章