Each time a user runs a program by typing the name of

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 00 00 00 89 08 5d c3 Figure 7.19: Code and relocation entries for Problem 7.13 Homework Problem 7.13 [Category 3]: Consider the C code and corresponding relocatable object module in Figure 7.20. A. Determine which instructions in .text will need to be modified by the linker when the module is relocated. For each such instruction, list the information in its relocation entry: section offset, relocation type, and symbol name. 7.14. SUMMARY 387 B. Determine which data objects in .data will need to be modified by the linker when the module is relocated. For each such instruction, list the information in its relocation entry: section offset, relocation type, and symbol name. Feel free to use tools such as OBJDUMP to help you solve this problem. Homework Problem 7.14 [Category 3]: Consider the C code and corresponding relocatable object module in Figure 7.21. A. Determine which instructions in .text will need to be modified by the linker when the module is relocated. For each such instruction, list the information in its relocation entry: section offset, relocation type, and symbol name. B. Determine which data objects in .rodata will need to be modified by the linker when the module is relocated. For each such instruction, list the information in its re...
View Full Document

Ask a homework question - tutors are online