SPRUIG8J January 2018 – March 2024
Figure 8-2 provides a simplified example of the process of linking two files together.
Note that this is a simplified example, so it does not show all the sections that will be created or the actual sequence of the sections. See Section 12.7 for the actual default memory placement map for C7000.
In Figure 8-2, file1.obj and file2.obj have been assembled to be used as linker input. Each contains the .text, .data, and default sections; in addition, each contains a user-named section. The executable object module shows the combined sections. The linker combines the .text section from file1.obj and the .text section from file2.obj to form one .text section, then combines the two .data sections and the two sections, and finally places the user-named sections at the end. The memory map shows the combined sections to be placed into memory.