Question: objectCode5: file format elf32-i386 Disassembly of section .init: 080482d8 : 80482d8: 53 push %ebx 80482d9: 83 ec 08 sub $0x8,%esp 80482dc: e8 9f 00 00
objectCode5: file format elf32-i386
Disassembly of section .init:
080482d8 <_init>: 80482d8: 53 push %ebx 80482d9: 83 ec 08 sub $0x8,%esp 80482dc: e8 9f 00 00 00 call 8048380 <__x86.get_pc_thunk.bx> 80482e1: 81 c3 1f 1d 00 00 add $0x1d1f,%ebx 80482e7: 8b 83 fc ff ff ff mov -0x4(%ebx),%eax 80482ed: 85 c0 test %eax,%eax 80482ef: 74 05 je 80482f6 <_init+0x1e> 80482f1: e8 2a 00 00 00 call 8048320 <__gmon_start__@plt> 80482f6: 83 c4 08 add $0x8,%esp 80482f9: 5b pop %ebx 80482fa: c3 ret
Disassembly of section .plt:
08048300
08048310
08048320 <__gmon_start__@plt>: 8048320: ff 25 10 a0 04 08 jmp *0x804a010 8048326: 68 08 00 00 00 push $0x8 804832b: e9 d0 ff ff ff jmp 8048300 <_init+0x28>
08048330 <__libc_start_main@plt>: 8048330: ff 25 14 a0 04 08 jmp *0x804a014 8048336: 68 10 00 00 00 push $0x10 804833b: e9 c0 ff ff ff jmp 8048300 <_init+0x28>
08048340
Disassembly of section .text:
08048350 <_start>: 8048350: 31 ed xor %ebp,%ebp 8048352: 5e pop %esi 8048353: 89 e1 mov %esp,%ecx 8048355: 83 e4 f0 and $0xfffffff0,%esp 8048358: 50 push %eax 8048359: 54 push %esp 804835a: 52 push %edx 804835b: 68 60 85 04 08 push $0x8048560 8048360: 68 f0 84 04 08 push $0x80484f0 8048365: 51 push %ecx 8048366: 56 push %esi 8048367: 68 7f 84 04 08 push $0x804847f 804836c: e8 bf ff ff ff call 8048330 <__libc_start_main@plt> 8048371: f4 hlt 8048372: 66 90 xchg %ax,%ax 8048374: 66 90 xchg %ax,%ax 8048376: 66 90 xchg %ax,%ax 8048378: 66 90 xchg %ax,%ax 804837a: 66 90 xchg %ax,%ax 804837c: 66 90 xchg %ax,%ax 804837e: 66 90 xchg %ax,%ax
08048380 <__x86.get_pc_thunk.bx>: 8048380: 8b 1c 24 mov (%esp),%ebx 8048383: c3 ret 8048384: 66 90 xchg %ax,%ax 8048386: 66 90 xchg %ax,%ax 8048388: 66 90 xchg %ax,%ax 804838a: 66 90 xchg %ax,%ax 804838c: 66 90 xchg %ax,%ax 804838e: 66 90 xchg %ax,%ax
08048390
080483c0
08048400 <__do_global_dtors_aux>: 8048400: 80 3d 24 a0 04 08 00 cmpb $0x0,0x804a024 8048407: 75 13 jne 804841c <__do_global_dtors_aux+0x1c> 8048409: 55 push %ebp 804840a: 89 e5 mov %esp,%ebp 804840c: 83 ec 08 sub $0x8,%esp 804840f: e8 7c ff ff ff call 8048390
08048420
0804844c
0804847f
080484f0 <__libc_csu_init>: 80484f0: 55 push %ebp 80484f1: 57 push %edi 80484f2: 31 ff xor %edi,%edi 80484f4: 56 push %esi 80484f5: 53 push %ebx 80484f6: e8 85 fe ff ff call 8048380 <__x86.get_pc_thunk.bx> 80484fb: 81 c3 05 1b 00 00 add $0x1b05,%ebx 8048501: 83 ec 1c sub $0x1c,%esp 8048504: 8b 6c 24 30 mov 0x30(%esp),%ebp 8048508: 8d b3 04 ff ff ff lea -0xfc(%ebx),%esi 804850e: e8 c5 fd ff ff call 80482d8 <_init> 8048513: 8d 83 00 ff ff ff lea -0x100(%ebx),%eax 8048519: 29 c6 sub %eax,%esi 804851b: c1 fe 02 sar $0x2,%esi 804851e: 85 f6 test %esi,%esi 8048520: 74 27 je 8048549 <__libc_csu_init+0x59> 8048522: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 8048528: 8b 44 24 38 mov 0x38(%esp),%eax 804852c: 89 2c 24 mov %ebp,(%esp) 804852f: 89 44 24 08 mov %eax,0x8(%esp) 8048533: 8b 44 24 34 mov 0x34(%esp),%eax 8048537: 89 44 24 04 mov %eax,0x4(%esp) 804853b: ff 94 bb 00 ff ff ff call *-0x100(%ebx,%edi,4) 8048542: 83 c7 01 add $0x1,%edi 8048545: 39 f7 cmp %esi,%edi 8048547: 75 df jne 8048528 <__libc_csu_init+0x38> 8048549: 83 c4 1c add $0x1c,%esp 804854c: 5b pop %ebx 804854d: 5e pop %esi 804854e: 5f pop %edi 804854f: 5d pop %ebp 8048550: c3 ret 8048551: eb 0d jmp 8048560 <__libc_csu_fini> 8048553: 90 nop 8048554: 90 nop 8048555: 90 nop 8048556: 90 nop 8048557: 90 nop 8048558: 90 nop 8048559: 90 nop 804855a: 90 nop 804855b: 90 nop 804855c: 90 nop 804855d: 90 nop 804855e: 90 nop 804855f: 90 nop
08048560 <__libc_csu_fini>: 8048560: f3 c3 repz ret 8048562: 66 90 xchg %ax,%ax
Disassembly of section .fini:
08048564 <_fini>: 8048564: 53 push %ebx 8048565: 83 ec 08 sub $0x8,%esp 8048568: e8 13 fe ff ff call 8048380 <__x86.get_pc_thunk.bx> 804856d: 81 c3 93 1a 00 00 add $0x1a93,%ebx 8048573: 83 c4 08 add $0x8,%esp 8048576: 5b pop %ebx 8048577: c3 ret
The file is run from the Linux command line, and takes one positive numerical argument, like this:
./objectCode5 3
(You can enter any small positive integer instead of 3.)
This code contains a function named what. Using gdb, figure out what the function named what computes:
Question 13 options:
| |||
| |||
| |||
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
