mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-06 01:29:55 +01:00
* 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 -
This commit is contained in:
parent
2dc8839af5
commit
49f93b4464
@ -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));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user