From bb51a2134a6d5b19ca3300a0b7f262feb7b0c834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A1roly=20Balogh?= Date: Sat, 3 Oct 2020 01:38:01 +0000 Subject: [PATCH] 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 - --- compiler/systems/t_zxspectrum.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/systems/t_zxspectrum.pas b/compiler/systems/t_zxspectrum.pas index 9bce9fbe04..fb58519d4c 100644 --- a/compiler/systems/t_zxspectrum.pas +++ b/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;