Browse Source

Make sure to align at the end of the .text, in case .data bytes will be placed there in flash.

git-svn-id: trunk@39442 -
Jeppe Johansen 7 years ago
parent
commit
3e2be29030
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/systems/t_embed.pas

+ 1 - 0
compiler/systems/t_embed.pas

@@ -672,6 +672,7 @@ begin
       Add('    *(.strings)');
       Add('    *(.rodata .rodata.*)');
       Add('    *(.comment)');
+      Add('    . = ALIGN(4);');
       Add('    _etext = .;');
       if embedded_controllers[current_settings.controllertype].flashsize<>0 then
         begin