^

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.

In SDK:
  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 08/13/2010
Status Active
Type
Feed Back