소스 검색

* WebAssembly threads internal linker: add the .tbss section to the linker
script in case threads are enabled

Nikolay Nikolov 1 년 전
부모
커밋
70ca28701b
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      compiler/systems/t_wasi.pas

+ 2 - 0
compiler/systems/t_wasi.pas

@@ -358,6 +358,8 @@ begin
     end
   else
     ScriptAddGenericSections('.text');
+  if ts_wasm_threads in current_settings.targetswitches then
+    ScriptAddGenericSections('.tbss');
   ScriptAddGenericSections(
     { data (initialized data first, uninitialized data later) }
     '.rodata,.data,fpc.resources,fpc.reshandles,.bss,'+