mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 15:47:51 +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_aranges',wcstDebugAranges,debug_aranges_section_nr);
|
||||||
MaybeAddDebugSectionToSymbolTable('.debug_ranges',wcstDebugRanges,debug_ranges_section_nr);
|
MaybeAddDebugSectionToSymbolTable('.debug_ranges',wcstDebugRanges,debug_ranges_section_nr);
|
||||||
|
|
||||||
|
DoRelocations;
|
||||||
|
|
||||||
if segment_count>0 then
|
if segment_count>0 then
|
||||||
begin
|
begin
|
||||||
WriteUleb(FWasmSections[wsiData],segment_count);
|
WriteUleb(FWasmSections[wsiData],segment_count);
|
||||||
@ -1974,7 +1976,6 @@ implementation
|
|||||||
MaybeWriteDebugSection('.debug_aranges',wcstDebugAranges);
|
MaybeWriteDebugSection('.debug_aranges',wcstDebugAranges);
|
||||||
MaybeWriteDebugSection('.debug_ranges',wcstDebugRanges);
|
MaybeWriteDebugSection('.debug_ranges',wcstDebugRanges);
|
||||||
|
|
||||||
DoRelocations;
|
|
||||||
WriteRelocations;
|
WriteRelocations;
|
||||||
|
|
||||||
WriteSymbolTable;
|
WriteSymbolTable;
|
||||||
|
Loading…
Reference in New Issue
Block a user