To generate a linker script for an application, do the following:
-
Select the application project in the Project Navigator view.
-
Right-click Generate Linker Script. Alternately, you can click Xilinx
Tools > Generate Linker Script. The left side of the dialog box is
read-only, except for Output Script name and project build settings in the
Modify project build settings as follows field. This region shows all
the available memory areas for the design.
You have two choices of how to allocate memory: using the Basic tab or the
Advanced tab. Both perform the same tasks; however, the Basic tab
is less granular and treats all types of data as “data” and all types of
instructions as “code.”. This is often sufficient to accomplish most tasks. Use the
Advanced tab for precise allocation of software blocks into various types
of memory.
- Click OK.
If there are errors, they must
be corrected before you can build your application with the new linker
script.
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
based on the options selected in Modify project build settings as
follows.