Browse Source

* internal object writer: the 'section too large' check should be disabled for platforms with 64-bit address size, not for 64-bit ALU size

Nikolay Nikolov 1 week ago
parent
commit
51c5bb8bdb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/ogbase.pas

+ 2 - 2
compiler/ogbase.pas

@@ -1069,7 +1069,7 @@ implementation
           begin
             if Size<>Data.size then
               internalerror(200602281);
-{$ifndef cpu64bitalu}
+{$ifndef cpu64bitaddr}
             if (qword(size)+l)>SizeLimit then
               SectionTooLargeError;
 {$endif}
@@ -1274,7 +1274,7 @@ implementation
 
     procedure TObjSection.alloc(l:TObjSectionOfs);
       begin
-{$ifndef cpu64bitalu}
+{$ifndef cpu64bitaddr}
         if (qword(size)+l)>SizeLimit then
           SectionTooLargeError;
 {$endif}