Browse Source

* align codesegment at the end after main proc

peter 25 years ago
parent
commit
3ffb57efe4
1 changed files with 10 additions and 6 deletions
  1. 10 6
      compiler/pmodules.pas

+ 10 - 6
compiler/pmodules.pas

@@ -108,7 +108,7 @@ unit pmodules;
         end;
         end;
 
 
       begin
       begin
-      {Insert Ident of the compiler}
+      { Insert Ident of the compiler }
         if (not (cs_create_smart in aktmoduleswitches))
         if (not (cs_create_smart in aktmoduleswitches))
 {$ifndef EXTDEBUG}
 {$ifndef EXTDEBUG}
            and (not current_module^.is_unit)
            and (not current_module^.is_unit)
@@ -116,9 +116,11 @@ unit pmodules;
            then
            then
          begin
          begin
            datasegment^.insert(new(pai_align,init(4)));
            datasegment^.insert(new(pai_align,init(4)));
-           datasegment^.insert(new(pai_string,init('FPC '+full_version_string+' ['+
-             date_string+'] for '+target_cpu_string+' - '+target_info.short_name)));
+           datasegment^.insert(new(pai_string,init('FPC '+full_version_string+
+             ' ['+date_string+'] for '+target_cpu_string+' - '+target_info.short_name)));
          end;
          end;
+      { finish codesegment }
+        codesegment^.concat(new(pai_align,init(16)));
       { Insert start and end of sections }
       { Insert start and end of sections }
         fixseg(codesegment,sec_code);
         fixseg(codesegment,sec_code);
         fixseg(datasegment,sec_data);
         fixseg(datasegment,sec_data);
@@ -138,8 +140,8 @@ unit pmodules;
 {$endif GDB}
 {$endif GDB}
       end;
       end;
 
 
-    Procedure InsertResourceTablesTable;
 
 
+    Procedure InsertResourceTablesTable;
       var
       var
         hp : pused_unit;
         hp : pused_unit;
         ResourceStringTables : taasmoutput;
         ResourceStringTables : taasmoutput;
@@ -178,7 +180,6 @@ unit pmodules;
       end;
       end;
 
 
 
 
-
     procedure InsertInitFinalTable;
     procedure InsertInitFinalTable;
       var
       var
         hp : pused_unit;
         hp : pused_unit;
@@ -1617,7 +1618,10 @@ unit pmodules;
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.180  2000-01-11 17:16:05  jonas
+  Revision 1.181  2000-01-12 10:30:15  peter
+    * align codesegment at the end after main proc
+
+  Revision 1.180  2000/01/11 17:16:05  jonas
     * removed a lot of memory leaks when an error is encountered (caused by
     * removed a lot of memory leaks when an error is encountered (caused by
       procinfo and pstringcontainers). There are still plenty left though :)
       procinfo and pstringcontainers). There are still plenty left though :)