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
日期 07/07/2014
状态 Active
Type 综合文章
Tools
People Also Viewed