Question: This problem concerns the relocated program in Figure 7.12(a). A. What is the hex address of the relocated reference to sum in line 5? B.

This problem concerns the relocated program in Figure 7.12(a).

A. What is the hex address of the relocated reference to sum in line 5?

B. What is the hex value of the relocated reference to sum in line 5?

Figure 7.12(a)

(a) Relocated .text section 1 00000000004004d0 : 4004d0: 48 83 ec 08 2 3 be 02 00 00 00 4 bf 18 10 60 00 5

(a) Relocated .text section 1 00000000004004d0 : 4004d0: 48 83 ec 08 2 3 be 02 00 00 00 4 bf 18 10 60 00 5 4004de: e8 05 00 00 00 4004e3: 48 83 c4 08 4004e7: c3 6 7 8 9 10 11 12 13 14 15 16 17 4004d4: 4004d9: 00000000004004e8 : 4004e8: b8 00 00 00 00 ba 00 00 00 00 4004ed: 4004f2: eb 09 400414: 48 63 ca 400417: 03 04 8f 40041a: 83 c2 01 4004fd: 39 12 4004ff: 7c f3 400501: f3 c3 sub mov mov $0x8, %rsp $0x2,%esi $0x601018,%edi callq 4004e8 add $0x8,%rsp retq add add mov mov jmp 4004fd movslq %edx, %rcx $0x0,%eax $0x0,%edx (%rdi,%rcx, 4), %eax $0x1, %edx %esi,%edx 4004f4 %edi = array sum () cmp j1 repz retq

Step by Step Solution

3.43 Rating (162 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

This problem concerns the disassembly listing in Figure 712a Our purpose here is to give you some ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Systems A Programmers Perspective Questions!