Updated PeiRebase to produce a map file of the relocations done by this tool. This...
[mirror_edk2.git] / Tools / Source / FrameworkTasks / org / tianocore / framework / tasks / PeiReBaseTask.java
index ec74651..c479e0d 100644 (file)
@@ -104,9 +104,10 @@ public class PeiReBaseTask extends Task implements EfiDefine {
         File file = new File(outputFile);\r
         if (!file.isAbsolute() && (!this.outputDir.equalsIgnoreCase(""))) {\r
             argument = inputFile + " " +  "-O " + outputDir + File.separatorChar\r
-                    + outputFile + " " + this.baseAddr;\r
+                    + outputFile + " " + this.baseAddr + " "\r
+                    + "-M " + outputDir + + File.separatorChar + outputFile + ".map";\r
         } else {\r
-            argument = inputFile + " " + "-O " + outputFile + " " + this.baseAddr;\r
+            argument = inputFile + " " + "-O " + outputFile + " " + this.baseAddr+ " " + "-M " + outputFile + ".map";\r
         }\r
         \r
         //\r