Generate a Linker Script dialog box


You can use the Generate a Linker Script dialog box to create a linker script for the software application. To open this dialog box, select the application project in the Project Navigator or C/C++ Projects view, and right-click Generate Linker Script.

Note: You can also open it by selecting Xilinx Tools > Generate Linker Script.

The Linker Script Generator dialog box contains the following functions:
Name Function
Output Settings Control output options for linker script generation.

Project

Displays the name of the software application project.

Output Script

Specify the name of the generated linker script here. This linker script will be added to the linker option of the software application

Modify project build settings as follows

This drop-down list has two options:

Set generated script on all project build configurations: Select this option to use the linker script with all build configurations, (for example, run, debug, and profile).

Set generated script on project's active build configuration: Select this option to associate the linker script with the active configuration.

Hardware Memory Map Displays the available memory in the system and its properties. This content is read-only.
Fixed Section Assignments Displays the address location where the boot and vector sections have been assigned. This content is read-only.
Basic The Basic tab allows you to quickly assign memory regions and define memory sizes.

Place Code Sections in

Select a memory region to which to assign all code sections.

Place Data Sections in

Select a memory region to which to assign all data sections.

Place Heap and Stack in

Select a memory region to which to assign the heap and stack.

Heap Size

Specify the heap size.

Stack Size

Specify the stack size.
Advanced The Advanced tab gives you the flexibility to assign memory regions and define memory sizes with greater control.

Section

Name of the ELF file section.

Memory

The memory region to which to map the ELF section.

Compiled Size

Size of the ELF file section. The value of this column for a data section is '0' if that section does not exist in the ELF file.
Note: This is a read-only field in the Code and Data sections. To specify the Heap and Stack size, modify the Assigned Size column of the Heap and Stack section.

Add Section
Click this button to add a section to the ELF file.

Remove Section

Click this button to delete the selection section from the ELF file.
Note: Some sections are necessary for the ELF file and cannot be deleted.

Related concepts
Linker scripts

Related tasks
Creating a linker script
Adding the linker script manually

Copyright © 1995-2010 Xilinx, Inc. All rights reserved.