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. Alternatively, you can click . The left side of the page is read-only, except for the 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 view or the Advanced view. Both perform the same tasks; however, the Basic view 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 view 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 view appears, asking if you want to overwrite the file. Click OK to overwrite the file or Cancel to cancel the overwrite.
The Vitis software platform 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.