浏览代码

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 年之前
父节点
当前提交
3e2be29030
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      compiler/systems/t_embed.pas

+ 1 - 0
compiler/systems/t_embed.pas

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