فهرست منبع

z80: added handling of sections provided by the startup code to the vlink linker script. this fixes executable building, but the resulting executables still don't work at this point

git-svn-id: trunk@46980 -
Károly Balogh 4 سال پیش
والد
کامیت
9f8417ba52
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      compiler/systems/t_zxspectrum.pas

+ 3 - 2
compiler/systems/t_zxspectrum.pas

@@ -173,8 +173,9 @@ function TLinkerZXSpectrum.WriteResponseFile_Vlink: Boolean;
         Add('SECTIONS');
         Add('{');
         Add('  . = 0x'+hexstr(FOrigin,4)+';');
-        Add('  .text : { *(.text .text.* ) }');
-        Add('  .data : { *(.data .data.* .rodata .rodata.* .bss .bss.* .fpc.* .stack .stack.* ) }');
+        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('}');
       end;