Creating a linker script


Generating a linker script for an application

To generate a linker script for an application:

  1. Click Tools > Generate Linker Script and select the application project, or right-click the application in the C/C++ Projects view and select Generate Linker Script.
  2. Configure the following sections of the Linker Script Generator dialog box:
  3. In the Output Linker Script field, specify the file name for the output linker script file.
  4. Click OK. If there are errors, they appear in the Console Window at the bottom of the SDK main window.

Note: If the linker script already exists, a message window appears, asking if you want to overwrite the file. Click OK to overwrite the file or Cancel to cancel the overwrite.

SDK automatically adds the linker script to the linker settings for a managed make project.

Adding the linker script manually

If you want to manually add the linker script for a managed make flow, do the following:

  1. Right-click your managed make project and select Properties.
  2. Click C/C++ Build.
  3. In the Tool Settings tab, select Linker Script to add the linker script.

For standard make projects, add the linker script manually to your makefile linker options.
Related concepts
Linker scripts

Related tasks
Managed make build settings

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