瀏覽代碼

sinclairql: make sure the end of bss (hence the bss size) is also aligned to two bytes

git-svn-id: trunk@49380 -
Károly Balogh 4 年之前
父節點
當前提交
906d0ba06e
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      compiler/systems/t_sinclairql.pas

+ 1 - 0
compiler/systems/t_sinclairql.pas

@@ -224,6 +224,7 @@ begin
       Add('  .bss (NOLOAD): {');
       Add('      _sbss = .;');
       Add('      *(.bss .bss.*)');
+      Add('      . = ALIGN(2); SHORT(0x0000);');
       Add('      _ebss = .;');
       Add('  } :'+ProgramHeaderName);
       Add('}');