Question: The table below contains the link-level details of two different procedures. In this exercise, you will be taking the place of the linker. Link the
The table below contains the link-level details of two different procedures. In this exercise, you will be taking the place of the linker.

Link the object files above to form the executable file header. Assume that Procedure A has a text size of 0x140 and data size of 0x40 and Procedure B has a text size of 0x300 and data size of 0x50. Also assume the memory allocation strategy as shown in Figure 2.13.
a. Text Segment Data Segment Symbol Table Address Instruction 0 4 0 *** Relocation Address Info 0 4 Procedure A Address lbu $a0, 0($gp) jal 0 (X) *** Instruction Type lbu jal Symbol X B Dependency X B Text Segment Data Segment Procedure B Address Instruction Symbol Table 0 4 0 Relocation Address Info 0 4 Address sw $a1, 0($gp) jal 0 (Y) *** Instruction Type SW jal Symbol Y A Dependency Y A
Step by Step Solution
3.43 Rating (153 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
