Explorar o código

* 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 %!s(int64=11) %!d(string=hai) anos
pai
achega
49f93b4464
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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));