Modifying a Linker Script - 2022.1 English

Vitis Unified Software Platform Documentation: Embedded Software Development (UG1400)

Document ID
UG1400
Release Date
2022-04-26
Version
2022.1 English
When you generate a linker script, there are multiple ways in which you can update it.
  1. Open the linker script using a text editor, and directly edit the linker script. Right-click on the linker script and select Open With > Text Editor.
  2. Regenerate the linker script with different settings using the linker script generator.
  3. Use the linker script editor to make modifications. To do this, double-click on the linker script. The custom linker script editor displays relevant sections of the linker script.

The linker script editor provides the following functionality.

Table 1. Linker Script Editor Functionality

Name

Function

Available Memory Regions This section lists the memory regions specified in the linker script. You can add a new region by clicking on the Add button to the right. You can modify the name, base address and size of each defined memory region.
Stack and Heap Sizes This section displays the sizes of the stack and heap sections. Simply edit the value in the text box to update the sizes for these sections.
Section to Memory Region Mapping This section provides a way to change the assigned memory region for any section defined in the linker script. To change the assigned memory region, simply click on the memory region to bring a drop-down menu from which an alternative memory region can be selected.