Description
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?
Solution
In XPS: - Right-click the software application project and select Set Compiler Options.
- Click the Paths and Options tab.
- In the Other Compiler Options to Append, add -Wl,-Map -Wl,"C:\<fullpath>\<name>.map"
- Click OK.
In SDK: - Right-click the software application project and select Properties.
- Select the C/C++ Build in the left pane.
- With the Tools tab brought forward, select Miscellaneous under Linker.
- In the Linker Flags, add -Wl,-Map -Wl,"C:\<fullpath>\<name>.map"
- Click OK.
The -Map keyword is case sensitive. The target file name must be enclosed in quotation marks.