Question: Consider the call to function swap in object file m .0 (Problem 7.6). call e e8 00 00 00 00 with the following relocation entry:

 Consider the call to function swap in object file m .0

Consider the call to function swap in object file m .0 (Problem 7.6). call e

e8 00 00 00 00 with the following relocation entry: r. offset = 0xa r. symbol = swap r. type = R_X86_64_PC32 r. addend = -4 Suppose that the linker relocates. text in m. 0 to address 0x4004e0 and swap to address 0x4004f8. Then what is the value of the relocated reference to swap in the call instruction? Suppose that the linker relocates. text in m 0 to address 0x4004d0 and swap to address 0x400500. Then what is the value of the relocated reference to swap in the call instruction

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!