Nikolay Nikolov
|
3c4a1087f3
* writing of the type wasm object section extracted to a method TWasmFuncTypeTable.WriteTo, so it can be reused in the exe writer
|
1 жил өмнө |
Nikolay Nikolov
|
a387accf81
* WriteWasmBasicType and WriteWasmResultType converted to global functions to allow reuse in the exe writer
|
1 жил өмнө |
Nikolay Nikolov
|
5583781f47
+ initialize TWasmExeOutput.FWasmSections
|
1 жил өмнө |
Nikolay Nikolov
|
7d6158d5f4
+ added and implemented TWasmExeOutput.WriteWasmSection
|
1 жил өмнө |
Nikolay Nikolov
|
c342a5f473
* converted some helper methods from TWasmObjOutput to global functions, so they can be reused in the exe writer
|
1 жил өмнө |
Nikolay Nikolov
|
b2f31c4112
+ added a section array to the wasm exe writer
|
1 жил өмнө |
Nikolay Nikolov
|
16c4e0300c
+ WebAssembly internal linker, exe writer: keep track of exe import functions. Add and fill TWasmObjSymbolLinkingData.ExeFunctionIndex
|
1 жил өмнө |
Nikolay Nikolov
|
da8ccd64ef
+ also write the functype of imported functions in the linker map file
|
1 жил өмнө |
Nikolay Nikolov
|
4f4beb6225
+ store the functype in TWasmObjSymbolLinkingData
|
1 жил өмнө |
Nikolay Nikolov
|
880eb3658a
+ process the module imports and write them to the map file in TWasmExeOutput.AfterUnusedSectionRemoval
|
1 жил өмнө |
Nikolay Nikolov
|
541bd66a6c
+ implemented TWasmExeOutput.GenerateLibraryImports
|
1 жил өмнө |
Nikolay Nikolov
|
b88b8efbce
+ WebAssembly object reader: create symbols for imports that have the
|
1 жил өмнө |
Nikolay Nikolov
|
f83223c8b2
* SymbolTable.ObjSym type changed from TObjSymbol to TWasmObjSymbol
|
1 жил өмнө |
Nikolay Nikolov
|
f30a41359d
+ added a TWasmFuncTypeTable instance to TWasmExeOutput
|
1 жил өмнө |
Nikolay Nikolov
|
e695edff98
+ initialize TWasmObjData.FFuncTypes in TWasmObjData's constructor
|
1 жил өмнө |
Nikolay Nikolov
|
0be3fe9ab4
- removed TWasmObjData.AddFuncType, instead call directly [F]FuncTypes.AddOrGetFuncType
|
1 жил өмнө |
Nikolay Nikolov
|
eb046b07d0
* TWasmFuncTypeTable.AddFuncType renamed .AddOrGetFuncType
|
1 жил өмнө |
Nikolay Nikolov
|
7266981c6c
+ Extracted the func list maintenance functionality from the WebAssembly object
|
1 жил өмнө |
Nikolay Nikolov
|
d6c3c74b46
+ create relocation objects for R_WASM_FUNCTION_OFFSET_I32 relocations in the wasm object reader
|
1 жил өмнө |
Nikolay Nikolov
|
73895d3cbc
+ create relocation objects for R_WASM_TYPE_INDEX_LEB relocations in the wasm object reader
|
1 жил өмнө |
Nikolay Nikolov
|
ae93f8de91
+ create relocation objects for R_WASM_MEMORY_ADDR_I32 relocations in the wasm object reader
|
1 жил өмнө |
Nikolay Nikolov
|
35f2fb1e8d
* fix warning
|
1 жил өмнө |
Nikolay Nikolov
|
bd606c6b77
+ create relocation objects for R_WASM_MEMORY_ADDR_SLEB relocations in the wasm object reader
|
1 жил өмнө |
Nikolay Nikolov
|
3e14d47b92
+ create relocation objects for R_WASM_MEMORY_ADDR_LEB relocations in the wasm object reader
|
1 жил өмнө |
Nikolay Nikolov
|
118e093c97
+ create relocation objects for R_WASM_TABLE_INDEX_I32 relocations in the wasm object reader
|
1 жил өмнө |
Nikolay Nikolov
|
c605da6ab3
+ create relocation objects for R_WASM_TABLE_INDEX_SLEB relocations in the wasm object reader
|
1 жил өмнө |
Nikolay Nikolov
|
aa296af787
+ create relocation objects for R_WASM_FUNCTION_INDEX_LEB relocations in the wasm object reader
|
1 жил өмнө |
Nikolay Nikolov
|
bc798695fe
+ find the code and data segment of each relocation
|
1 жил өмнө |
Nikolay Nikolov
|
268a148d3a
+ store the parsed relocation table in an array
|
1 жил өмнө |
Nikolay Nikolov
|
82c52ed127
* disallow (for now) relocations for sections other than the code and data sections
|
1 жил өмнө |