动态连接1-objdump -S -s file_b.so

来源:互联网 发布:淘宝取消千人千面 编辑:程序博客网 时间:2024/05/16 20:38
[root@localhost mhello]# objdump -S file_b.sofile_b.so:     file format elf32-i386Disassembly of section .init:0000037c <_init>: 37c:55                   push   %ebp 37d:89 e5                mov    %esp,%ebp 37f:53                   push   %ebx 380:83 ec 04             sub    $0x4,%esp 383:e8 00 00 00 00       call   388 <_init+0xc> 388:5b                   pop    %ebx 389:81 c3 30 13 00 00    add    $0x1330,%ebx 38f:8b 93 f4 ff ff ff    mov    -0xc(%ebx),%edx 395:85 d2                test   %edx,%edx 397:74 05                je     39e <_init+0x22> 399:e8 1e 00 00 00       call   3bc <__gmon_start__@plt> 39e:e8 bd 00 00 00       call   460 <frame_dummy> 3a3:e8 68 01 00 00       call   510 <__do_global_ctors_aux> 3a8:58                   pop    %eax 3a9:5b                   pop    %ebx 3aa:c9                   leave   3ab:c3                   ret    Disassembly of section .plt:000003ac <__gmon_start__@plt-0x10>: 3ac:ff b3 04 00 00 00    pushl  0x4(%ebx) 3b2:ff a3 08 00 00 00    jmp    *0x8(%ebx) 3b8:00 00                add    %al,(%eax)...000003bc <__gmon_start__@plt>: 3bc:ff a3 0c 00 00 00    jmp    *0xc(%ebx) 3c2:68 00 00 00 00       push   $0x0 3c7:e9 e0 ff ff ff       jmp    3ac <_init+0x30>000003cc <__cxa_finalize@plt>: 3cc:ff a3 10 00 00 00    jmp    *0x10(%ebx) 3d2:68 08 00 00 00       push   $0x8 3d7:e9 d0 ff ff ff       jmp    3ac <_init+0x30>Disassembly of section .text:000003e0 <__do_global_dtors_aux>: 3e0:55                   push   %ebp 3e1:89 e5                mov    %esp,%ebp 3e3:56                   push   %esi 3e4:53                   push   %ebx 3e5:e8 ad 00 00 00       call   497 <__i686.get_pc_thunk.bx> 3ea:81 c3 ce 12 00 00    add    $0x12ce,%ebx 3f0:83 ec 10             sub    $0x10,%esp 3f3:80 bb 18 00 00 00 00 cmpb   $0x0,0x18(%ebx) 3fa:75 5d                jne    459 <__do_global_dtors_aux+0x79> 3fc:8b 83 fc ff ff ff    mov    -0x4(%ebx),%eax 402:85 c0                test   %eax,%eax 404:74 0e                je     414 <__do_global_dtors_aux+0x34> 406:8d 83 28 ff ff ff    lea    -0xd8(%ebx),%eax 40c:89 04 24             mov    %eax,(%esp) 40f:e8 b8 ff ff ff       call   3cc <__cxa_finalize@plt> 414:8b 8b 1c 00 00 00    mov    0x1c(%ebx),%ecx 41a:8d 83 20 ff ff ff    lea    -0xe0(%ebx),%eax 420:8d 93 1c ff ff ff    lea    -0xe4(%ebx),%edx 426:29 d0                sub    %edx,%eax 428:c1 f8 02             sar    $0x2,%eax 42b:8d 70 ff             lea    -0x1(%eax),%esi 42e:39 f1                cmp    %esi,%ecx 430:73 20                jae    452 <__do_global_dtors_aux+0x72> 432:8d b6 00 00 00 00    lea    0x0(%esi),%esi 438:8d 41 01             lea    0x1(%ecx),%eax 43b:89 83 1c 00 00 00    mov    %eax,0x1c(%ebx) 441:ff 94 83 1c ff ff ff call   *-0xe4(%ebx,%eax,4) 448:8b 8b 1c 00 00 00    mov    0x1c(%ebx),%ecx 44e:39 f1                cmp    %esi,%ecx 450:72 e6                jb     438 <__do_global_dtors_aux+0x58> 452:c6 83 18 00 00 00 01 movb   $0x1,0x18(%ebx) 459:83 c4 10             add    $0x10,%esp 45c:5b                   pop    %ebx 45d:5e                   pop    %esi 45e:5d                   pop    %ebp 45f:c3                   ret    00000460 <frame_dummy>: 460:55                   push   %ebp 461:89 e5                mov    %esp,%ebp 463:53                   push   %ebx 464:e8 2e 00 00 00       call   497 <__i686.get_pc_thunk.bx> 469:81 c3 4f 12 00 00    add    $0x124f,%ebx 46f:83 ec 04             sub    $0x4,%esp 472:8b 93 24 ff ff ff    mov    -0xdc(%ebx),%edx 478:85 d2                test   %edx,%edx 47a:74 15                je     491 <frame_dummy+0x31> 47c:8b 93 f8 ff ff ff    mov    -0x8(%ebx),%edx 482:85 d2                test   %edx,%edx 484:74 0b                je     491 <frame_dummy+0x31> 486:8d 83 24 ff ff ff    lea    -0xdc(%ebx),%eax 48c:89 04 24             mov    %eax,(%esp) 48f:ff d2                call   *%edx 491:83 c4 04             add    $0x4,%esp 494:5b                   pop    %ebx 495:5d                   pop    %ebp 496:c3                   ret    00000497 <__i686.get_pc_thunk.bx>: 497:8b 1c 24             mov    (%esp),%ebx 49a:c3                   ret     49b:90                   nop    0000049c <func_file_b>: 49c:55                   push   %ebp 49d:89 e5                mov    %esp,%ebp 49f:83 ec 18             sub    $0x18,%esp 4a2:c7 05 00 00 00 00 16 movl   $0x16,0x0 4a9:00 00 00  4ac:c7 45 fc c8 00 00 00 movl   $0xc8,-0x4(%ebp) 4b3:c7 04 24 64 05 00 00 movl   $0x564,(%esp) 4ba:e8 fc ff ff ff       call   4bb <func_file_b+0x1f> 4bf:8b 45 fc             mov    -0x4(%ebp),%eax 4c2:89 44 24 04          mov    %eax,0x4(%esp) 4c6:c7 04 24 76 05 00 00 movl   $0x576,(%esp) 4cd:e8 fc ff ff ff       call   4ce <func_file_b+0x32> 4d2:8b 45 08             mov    0x8(%ebp),%eax 4d5:01 45 fc             add    %eax,-0x4(%ebp) 4d8:8b 45 fc             mov    -0x4(%ebp),%eax 4db:89 44 24 04          mov    %eax,0x4(%esp) 4df:c7 04 24 8c 05 00 00 movl   $0x58c,(%esp) 4e6:e8 fc ff ff ff       call   4e7 <func_file_b+0x4b> 4eb:c7 04 24 a7 05 00 00 movl   $0x5a7,(%esp) 4f2:e8 fc ff ff ff       call   4f3 <func_file_b+0x57> 4f7:c7 04 24 b8 05 00 00 movl   $0x5b8,(%esp) 4fe:e8 fc ff ff ff       call   4ff <func_file_b+0x63> 503:8b 45 fc             mov    -0x4(%ebp),%eax 506:c9                   leave   507:c3                   ret     508:90                   nop     509:90                   nop     50a:90                   nop     50b:90                   nop     50c:90                   nop     50d:90                   nop     50e:90                   nop     50f:90                   nop    00000510 <__do_global_ctors_aux>: 510:55                   push   %ebp 511:89 e5                mov    %esp,%ebp 513:56                   push   %esi 514:53                   push   %ebx 515:e8 7d ff ff ff       call   497 <__i686.get_pc_thunk.bx> 51a:81 c3 9e 11 00 00    add    $0x119e,%ebx 520:8b 83 14 ff ff ff    mov    -0xec(%ebx),%eax 526:83 f8 ff             cmp    $0xffffffff,%eax 529:74 19                je     544 <__do_global_ctors_aux+0x34> 52b:8d b3 14 ff ff ff    lea    -0xec(%ebx),%esi 531:8d b4 26 00 00 00 00 lea    0x0(%esi,%eiz,1),%esi 538:83 ee 04             sub    $0x4,%esi 53b:ff d0                call   *%eax 53d:8b 06                mov    (%esi),%eax 53f:83 f8 ff             cmp    $0xffffffff,%eax 542:75 f4                jne    538 <__do_global_ctors_aux+0x28> 544:5b                   pop    %ebx 545:5e                   pop    %esi 546:5d                   pop    %ebp 547:c3                   ret    Disassembly of section .fini:00000548 <_fini>: 548:55                   push   %ebp 549:89 e5                mov    %esp,%ebp 54b:53                   push   %ebx 54c:83 ec 04             sub    $0x4,%esp 54f:e8 00 00 00 00       call   554 <_fini+0xc> 554:5b                   pop    %ebx 555:81 c3 64 11 00 00    add    $0x1164,%ebx 55b:e8 80 fe ff ff       call   3e0 <__do_global_dtors_aux> 560:59                   pop    %ecx 561:5b                   pop    %ebx 562:c9                   leave   563:c3                   ret    [root@localhost mhello]# [root@localhost mhello]# objdump -s file_b.sofile_b.so:     file format elf32-i386Contents of section .note.gnu.build-id: 00d4 04000000 14000000 03000000 474e5500  ............GNU. 00e4 9248c101 1860809c cc44e646 e92fba1d  .H...`...D.F./.. 00f4 270720b5                             '. .            Contents of section .gnu.hash: 00f8 03000000 06000000 02000000 06000000  ................ 0108 88002001 10d44209 06000000 09000000  .. ...B......... 0118 0c000000 ec032500 bae3927c 4345d5ec  ......%....|CE.. 0128 d871581c 30f18fd8 b98df10e ebd3ef0e  .qX.0...........Contents of section .dynsym: 0138 00000000 00000000 00000000 00000000  ................ 0148 01000000 00000000 00000000 20000000  ............ ... 0158 2b000000 00000000 00000000 20000000  +........... ... 0168 62000000 00000000 36000000 12000000  b.......6....... 0178 5d000000 00000000 cc010000 12000000  ]............... 0188 1c000000 00000000 94010000 22000000  ............"... 0198 3f000000 cc160000 04000000 11001600  ?............... 01a8 86000000 d8160000 00000000 1000f1ff  ................ 01b8 73000000 d0160000 00000000 1000f1ff  s............... 01c8 7a000000 d0160000 00000000 1000f1ff  z............... 01d8 51000000 9c040000 6c000000 12000b00  Q.......l....... 01e8 10000000 7c030000 00000000 12000900  ....|........... 01f8 16000000 48050000 00000000 12000c00  ....H...........Contents of section .dynstr: 0208 005f5f67 6d6f6e5f 73746172 745f5f00  .__gmon_start__. 0218 5f696e69 74005f66 696e6900 5f5f6378  _init._fini.__cx 0228 615f6669 6e616c69 7a65005f 4a765f52  a_finalize._Jv_R 0238 65676973 74657243 6c617373 65730076  egisterClasses.v 0248 61725f70 75626c69 635f6669 6c655f62  ar_public_file_b 0258 0066756e 635f6669 6c655f62 00707574  .func_file_b.put 0268 73007072 696e7466 006c6962 632e736f  s.printf.libc.so 0278 2e36005f 65646174 61005f5f 6273735f  .6._edata.__bss_ 0288 73746172 74005f65 6e640047 4c494243  start._end.GLIBC 0298 5f322e31 2e330047 4c494243 5f322e30  _2.1.3.GLIBC_2.0 02a8 00                                   .               Contents of section .gnu.version: 02aa 00000000 00000200 02000300 01000100  ................ 02ba 01000100 01000100 0100               ..........      Contents of section .gnu.version_r: 02c4 01000200 69000000 10000000 00000000  ....i........... 02d4 731f6909 00000300 8b000000 10000000  s.i............. 02e4 1069690d 00000200 97000000 00000000  .ii.............Contents of section .rel.dyn: 02f4 b6040000 08000000 c9040000 08000000  ................ 0304 e2040000 08000000 ee040000 08000000  ................ 0314 fa040000 08000000 e0150000 08000000  ................ 0324 a4040000 01060000 bb040000 02040000  ................ 0334 ff040000 02040000 ce040000 02030000  ................ 0344 e7040000 02030000 f3040000 02030000  ................ 0354 ac160000 06010000 b0160000 06020000  ................ 0364 b4160000 06050000                    ........        Contents of section .rel.plt: 036c c4160000 07010000 c8160000 07050000  ................Contents of section .init: 037c 5589e553 83ec04e8 00000000 5b81c330  U..S........[..0 038c 1300008b 93f4ffff ff85d274 05e81e00  ...........t.... 039c 0000e8bd 000000e8 68010000 585bc9c3  ........h...X[..Contents of section .plt: 03ac ffb30400 0000ffa3 08000000 00000000  ................ 03bc ffa30c00 00006800 000000e9 e0ffffff  ......h......... 03cc ffa31000 00006808 000000e9 d0ffffff  ......h.........Contents of section .text: 03e0 5589e556 53e8ad00 000081c3 ce120000  U..VS........... 03f0 83ec1080 bb180000 0000755d 8b83fcff  ..........u].... 0400 ffff85c0 740e8d83 28ffffff 890424e8  ....t...(.....$. 0410 b8ffffff 8b8b1c00 00008d83 20ffffff  ............ ... 0420 8d931cff ffff29d0 c1f8028d 70ff39f1  ......).....p.9. 0430 73208db6 00000000 8d410189 831c0000  s .......A...... 0440 00ff9483 1cffffff 8b8b1c00 000039f1  ..............9. 0450 72e6c683 18000000 0183c410 5b5e5dc3  r...........[^]. 0460 5589e553 e82e0000 0081c34f 12000083  U..S.......O.... 0470 ec048b93 24ffffff 85d27415 8b93f8ff  ....$.....t..... 0480 ffff85d2 740b8d83 24ffffff 890424ff  ....t...$.....$. 0490 d283c404 5b5dc38b 1c24c390 5589e583  ....[]...$..U... 04a0 ec18c705 00000000 16000000 c745fcc8  .............E.. 04b0 000000c7 04246405 0000e8fc ffffff8b  .....$d......... 04c0 45fc8944 2404c704 24760500 00e8fcff  E..D$...$v...... 04d0 ffff8b45 080145fc 8b45fc89 442404c7  ...E..E..E..D$.. 04e0 04248c05 0000e8fc ffffffc7 0424a705  .$...........$.. 04f0 0000e8fc ffffffc7 0424b805 0000e8fc  .........$...... 0500 ffffff8b 45fcc9c3 90909090 90909090  ....E........... 0510 5589e556 53e87dff ffff81c3 9e110000  U..VS.}......... 0520 8b8314ff ffff83f8 ff74198d b314ffff  .........t...... 0530 ff8db426 00000000 83ee04ff d08b0683  ...&............ 0540 f8ff75f4 5b5e5dc3                    ..u.[^].        Contents of section .fini: 0548 5589e553 83ec04e8 00000000 5b81c364  U..S........[..d 0558 110000e8 80feffff 595bc9c3           ........Y[..    Contents of section .rodata: 0564 66756e63 5f66696c 655f6220 73746172  func_file_b star 0574 74007661 725f7072 69766174 5f66696c  t.var_privat_fil 0584 655f623d 25640a00 7661725f 70726976  e_b=%d..var_priv 0594 61745f66 696c655f 622b7465 6d703d25  at_file_b+temp=% 05a4 640a0066 726f6d20 66756e63 5f66696c  d..from func_fil 05b4 655f6200 66756e63 5f66696c 655f6220  e_b.func_file_b  05c4 656e6400                             end.            Contents of section .eh_frame: 05c8 00000000                             ....            Contents of section .ctors: 15cc ffffffff 00000000                    ........        Contents of section .dtors: 15d4 ffffffff 00000000                    ........        Contents of section .jcr: 15dc 00000000                             ....            Contents of section .data.rel.ro: 15e0 e0150000                             ....            Contents of section .dynamic: 15e4 01000000 69000000 0c000000 7c030000  ....i.......|... 15f4 0d000000 48050000 f5feff6f f8000000  ....H......o.... 1604 05000000 08020000 06000000 38010000  ............8... 1614 0a000000 a1000000 0b000000 10000000  ................ 1624 03000000 b8160000 02000000 10000000  ................ 1634 14000000 11000000 17000000 6c030000  ............l... 1644 11000000 f4020000 12000000 78000000  ............x... 1654 13000000 08000000 16000000 00000000  ................ 1664 feffff6f c4020000 ffffff6f 01000000  ...o.......o.... 1674 f0ffff6f aa020000 faffff6f 06000000  ...o.......o.... 1684 00000000 00000000 00000000 00000000  ................ 1694 00000000 00000000 00000000 00000000  ................ 16a4 00000000 00000000                    ........        Contents of section .got: 16ac 00000000 00000000 00000000           ............    Contents of section .got.plt: 16b8 e4150000 00000000 00000000 c2030000  ................ 16c8 d2030000                             ....            Contents of section .data: 16cc 02000000                             ....            Contents of section .comment: 0000 00474343 3a202847 4e552920 342e332e  .GCC: (GNU) 4.3. 0010 30203230 30383034 32382028 52656420  0 20080428 (Red  0020 48617420 342e332e 302d3829 00004743  Hat 4.3.0-8)..GC 0030 433a2028 474e5529 20342e33 2e302032  C: (GNU) 4.3.0 2 0040 30303830 34323820 28526564 20486174  0080428 (Red Hat 0050 20342e33 2e302d38 29000047 43433a20   4.3.0-8)..GCC:  0060 28474e55 2920342e 332e3020 32303038  (GNU) 4.3.0 2008 0070 30343238 20285265 64204861 7420342e  0428 (Red Hat 4. 0080 332e302d 38290000 4743433a 2028474e  3.0-8)..GCC: (GN 0090 55292034 2e332e30 20323030 38303432  U) 4.3.0 2008042 00a0 38202852 65642048 61742034 2e332e30  8 (Red Hat 4.3.0 00b0 2d382900 00474343 3a202847 4e552920  -8)..GCC: (GNU)  00c0 342e332e 30203230 30383034 32382028  4.3.0 20080428 ( 00d0 52656420 48617420 342e332e 302d3829  Red Hat 4.3.0-8) 00e0 00