mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 01:29:21 +02:00
* WebAssembly internal linker: write the memory section before the export section, so it appears in a more logical order in the map file
This commit is contained in:
parent
ef7f2ab5a7
commit
326356e8e9
@ -5220,7 +5220,6 @@ implementation
|
|||||||
WriteTableAndElemSections;
|
WriteTableAndElemSections;
|
||||||
WriteGlobalSection;
|
WriteGlobalSection;
|
||||||
WriteTagSection;
|
WriteTagSection;
|
||||||
WriteExportSection;
|
|
||||||
|
|
||||||
if not (ts_wasm_threads in current_settings.targetswitches) then
|
if not (ts_wasm_threads in current_settings.targetswitches) then
|
||||||
begin
|
begin
|
||||||
@ -5244,6 +5243,8 @@ implementation
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
WriteExportSection;
|
||||||
|
|
||||||
if ts_wasm_threads in current_settings.targetswitches then
|
if ts_wasm_threads in current_settings.targetswitches then
|
||||||
WriteUleb(FWasmSections[wsiStart],FInitSharedMemoryFunctionSym.LinkingData.ExeFunctionIndex);
|
WriteUleb(FWasmSections[wsiStart],FInitSharedMemoryFunctionSym.LinkingData.ExeFunctionIndex);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user