Browse Source

Handle link map for msdos wlink

git-svn-id: trunk@26461 -
pierre 11 years ago
parent
commit
2a6e592fba
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/systems/t_msdos.pas

+ 2 - 0
compiler/systems/t_msdos.pas

@@ -276,6 +276,8 @@ begin
   else
     LinkRes.Add('format dos');
   LinkRes.Add('option dosseg');
+  if (cs_link_map in current_settings.globalswitches) then
+    LinkRes.Add('option map='+maybequoted(ChangeFileExt(current_module.exefilename,'.map')));
   LinkRes.Add('name ' + maybequoted(current_module.exefilename));
 
   { Write and Close response }