Browse Source

* the areas global symbols count must be in hex in the .rel format

git-svn-id: trunk@45244 -
nickysn 5 years ago
parent
commit
92e86e7673
1 changed files with 8 additions and 1 deletions
  1. 8 1
      compiler/ogrel.pas

+ 8 - 1
compiler/ogrel.pas

@@ -75,6 +75,13 @@ implementation
        version
        version
        ;
        ;
 
 
+    function tohex(q: qword): string;
+      begin
+        result:=HexStr(q,16);
+        while (Length(result)>1) and (result[1]='0') do
+          delete(result,1,1);
+      end;
+
 {*****************************************************************************
 {*****************************************************************************
                                 TRelObjData
                                 TRelObjData
 *****************************************************************************}
 *****************************************************************************}
@@ -179,7 +186,7 @@ implementation
           end;
           end;
 
 
         writeLine('XL2');
         writeLine('XL2');
-        writeLine('H '+tostr(data.ObjSectionList.Count)+' areas '+tostr(global_symbols_count)+' global symbols');
+        writeLine('H '+tohex(data.ObjSectionList.Count)+' areas '+tohex(global_symbols_count)+' global symbols');
 
 
         idx:=0;
         idx:=0;
         for i:=0 to Data.ObjSymbolList.Count-1 do
         for i:=0 to Data.ObjSymbolList.Count-1 do