mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 11:24:14 +02:00
* 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:
parent
961042356c
commit
a87481cfa4
@ -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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user