From f14f4ff92440ff8f04b605441bf210bb1da5c9ac Mon Sep 17 00:00:00 2001 From: nickysn Date: Thu, 3 Sep 2015 17:53:15 +0000 Subject: [PATCH] * use the 'FAR_DATA' segment class name instead of 'DATA' or 'BSS' in the huge memory model git-svn-id: trunk@31497 - --- compiler/omfbase.pas | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compiler/omfbase.pas b/compiler/omfbase.pas index 9cac8b0caf..0f786acebb 100644 --- a/compiler/omfbase.pas +++ b/compiler/omfbase.pas @@ -1768,6 +1768,11 @@ implementation ); begin result:=segclass[atype]; +{$ifdef i8086} + if (current_settings.x86memorymodel=mm_huge) and + ((result='DATA') or (result='BSS')) then + result:='FAR_DATA'; +{$endif i8086} end; function omf_sectiontype2align(atype: TAsmSectiontype): shortint; @@ -1806,6 +1811,8 @@ implementation case omf_segclass(atype) of 'CODE': result:=current_settings.x86memorymodel=mm_tiny; + 'FAR_DATA': + result:=false; 'DATA', 'BSS': result:=true;