* WebAssembly threads internal linker: declare the __tls_base, __tls_size and

__tls_align symbols in the internal linker script if threads are enabled
This commit is contained in:
Nikolay Nikolov 2024-08-10 19:50:43 +03:00
parent 961042356c
commit a87481cfa4

View File

@ -332,6 +332,12 @@ begin
LinkScript.Concat('EXESECTION .wasm_globals');
LinkScript.Concat(' SYMBOL __stack_pointer');
if ts_wasm_threads in current_settings.targetswitches then
begin
LinkScript.Concat(' SYMBOL __tls_base');
LinkScript.Concat(' SYMBOL __tls_size');
LinkScript.Concat(' SYMBOL __tls_align');
end;
LinkScript.Concat(' OBJSECTION .wasm_globals.*');
LinkScript.Concat('ENDEXESECTION');