瀏覽代碼

* use the 'order' wlink directive to specify the segment order, instead of using
'option dosseg'. This allows us more flexibility in setting up the segment
order the way we like.

git-svn-id: trunk@27958 -

nickysn 11 年之前
父節點
當前提交
49f93b4464
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      compiler/systems/t_msdos.pas

+ 4 - 1
compiler/systems/t_msdos.pas

@@ -277,7 +277,10 @@ begin
     LinkRes.Add('format dos com')
   else
     LinkRes.Add('format dos');
-  LinkRes.Add('option dosseg');
+  if current_settings.x86memorymodel=mm_tiny then
+    LinkRes.Add('order clname CODE clname DATA clname BSS')
+  else
+    LinkRes.Add('order clname CODE clname BEGDATA segment _NULL segment _AFTERNULL clname DATA clname BSS clname STACK');
   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));