mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 20:39:43 +02:00
* wasm32 obj writer: do the relocations before writing the code, data and debug sections
This commit is contained in:
parent
edf5fce7e3
commit
e959422753
@ -1915,6 +1915,8 @@ implementation
|
||||
MaybeAddDebugSectionToSymbolTable('.debug_aranges',wcstDebugAranges,debug_aranges_section_nr);
|
||||
MaybeAddDebugSectionToSymbolTable('.debug_ranges',wcstDebugRanges,debug_ranges_section_nr);
|
||||
|
||||
DoRelocations;
|
||||
|
||||
if segment_count>0 then
|
||||
begin
|
||||
WriteUleb(FWasmSections[wsiData],segment_count);
|
||||
@ -1974,7 +1976,6 @@ implementation
|
||||
MaybeWriteDebugSection('.debug_aranges',wcstDebugAranges);
|
||||
MaybeWriteDebugSection('.debug_ranges',wcstDebugRanges);
|
||||
|
||||
DoRelocations;
|
||||
WriteRelocations;
|
||||
|
||||
WriteSymbolTable;
|
||||
|
Loading…
Reference in New Issue
Block a user