We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 23025

12.1 EDK - How do I generate a GNU linker MAP file with XPS?


I want the PowerPC linker to generate a memory MAP file (a file specifying the memory address of each of the variables and functions in the ".elf"). 

How can I do this with XPS?


In XPS: 
  1. Right-click the software application project and select "Set Compiler Options".
  2. Click the Paths and Options tab.
  3. In the Other Compiler Options to Append, add -Wl,-Map -Wl,"C:\<fullpath>\<name>.map"
  4. Click OK. 

  1. Right-click the software application project and select Properties.
  2. Select the C/C++ Build in the left pane.
  3. With the Tools tab brought forward, select Miscellaneous under Linker.
  4. In the Linker Flags, add -Wl,-Map -Wl,"C:\<fullpath>\<name>.map"
  5. Click OK.

The -Map keyword is case sensitive. The target file name must be enclosed in quotation marks.
AR# 23025
Date Created 09/04/2007
Last Updated 07/07/2014
Status Active
Type General Article
  • EDK - 12.1