Browse Source

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 years ago
parent
commit
906d0ba06e
1 changed files with 1 additions and 0 deletions
  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('}');