Browse Source

z80-zxspectrum: fix the the linking order in the bss section, so the startup code doesn't crash when linked with vlink

git-svn-id: trunk@47036 -
Károly Balogh 4 years ago
parent
commit
bb51a2134a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/systems/t_zxspectrum.pas

+ 1 - 1
compiler/systems/t_zxspectrum.pas

@@ -175,7 +175,7 @@ function TLinkerZXSpectrum.WriteResponseFile_Vlink: Boolean;
         Add('  . = 0x'+hexstr(FOrigin,4)+';');
         Add('  .text : { *(.text .text.* _CODE _CODE.* ) }');
         Add('  .data : { *(.data .data.* .rodata .rodata.* .fpc.* ) }');
-        Add('  .bss  : { *(.bss .bss.* _BSS _BSS.* _BSSEND _BSSEND.* _HEAP _HEAP.* .stack .stack.* _STACK _STACK.* ) }');
+        Add('  .bss  : { *(_BSS _BSS.*) *(.bss .bss.*) *(_BSSEND _BSSEND.*) *(_HEAP _HEAP.*) *(.stack .stack.*) *(_STACK _STACK.*) }');
         Add('}');
       end;