Nikolay Nikolov
|
dc4689ba1b
* wasm internal linker: start the data section at offset 0, as WebAssembly is a Harvard architecture.
|
1 jaar geleden |
Nikolay Nikolov
|
69ce966691
+ implemented RELOC_TYPE_INDEX_LEB relocations in the wasm internal linker
|
1 jaar geleden |
Nikolay Nikolov
|
0b3238bcd3
* refactor: invert if condition and else statement (reducing the nesting level), because then terminates the function. No functional changes.
|
1 jaar geleden |
Nikolay Nikolov
|
5845bb9095
* produce an internal error, instead of a warning in case of RELOC_FUNCTION_INDEX_LEB pointing to a function with missing ExeFunctionIndex
|
1 jaar geleden |
Nikolay Nikolov
|
50986967f5
+ wasm internal linker: fill ExeFunctionIndex of alias code symbols as well
|
1 jaar geleden |
Nikolay Nikolov
|
cf79ca16b4
* only set MainFuncSymbol of code sections to the main (non-alias) symbol
|
1 jaar geleden |
Nikolay Nikolov
|
c453bac7ad
+ report an error in case a wasm object file has a code section, without a main symbol
|
1 jaar geleden |
Nikolay Nikolov
|
e1d56a9944
* wasm internal linker: use the main symbol (without WASM_SYM_EXPLICIT_NAME,
|
1 jaar geleden |
Nikolay Nikolov
|
7747e1f6c8
+ wasm internal linker: write the functions, defined in the current module in the linker map file
|
1 jaar geleden |
Nikolay Nikolov
|
409de5ac96
+ write the import function indexes in the linker map file
|
1 jaar geleden |
Nikolay Nikolov
|
1c1dbaf776
+ partial implementation of RELOC_FUNCTION_INDEX_LEB relocations in the wasm internal linker
|
1 jaar geleden |
Nikolay Nikolov
|
f4f6a16796
+ fill the memory section in the wasm exe writer
|
1 jaar geleden |
Nikolay Nikolov
|
507e9eb20a
+ added check for the ExeFunctionIndex inside WriteCodeSegments
|
1 jaar geleden |
Nikolay Nikolov
|
88a42c3ee0
+ write the type indexes correctly
|
1 jaar geleden |
Nikolay Nikolov
|
f5dbd38b7e
* extracted the import preparation to a separate method TWasmExeOutput.PrepareImports
|
1 jaar geleden |
Nikolay Nikolov
|
946fc370e9
* set TWasmObjSection.MainFuncSymbol in the wasm object reader
|
1 jaar geleden |
Nikolay Nikolov
|
ac0c187b56
+ WebAssembly exe writer: write the code section
|
1 jaar geleden |
Nikolay Nikolov
|
d9a67bb16d
+ generate the import section in the wasm exe writer
|
1 jaar geleden |
Nikolay Nikolov
|
2c72b62a0e
+ generate and write the Type section in the WebAssembly internal exe writer
|
1 jaar geleden |
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 jaar geleden |
Nikolay Nikolov
|
a387accf81
* WriteWasmBasicType and WriteWasmResultType converted to global functions to allow reuse in the exe writer
|
1 jaar geleden |
Nikolay Nikolov
|
5583781f47
+ initialize TWasmExeOutput.FWasmSections
|
1 jaar geleden |
Nikolay Nikolov
|
7d6158d5f4
+ added and implemented TWasmExeOutput.WriteWasmSection
|
1 jaar geleden |
Nikolay Nikolov
|
c342a5f473
* converted some helper methods from TWasmObjOutput to global functions, so they can be reused in the exe writer
|
1 jaar geleden |
Nikolay Nikolov
|
b2f31c4112
+ added a section array to the wasm exe writer
|
1 jaar geleden |
Nikolay Nikolov
|
16c4e0300c
+ WebAssembly internal linker, exe writer: keep track of exe import functions. Add and fill TWasmObjSymbolLinkingData.ExeFunctionIndex
|
1 jaar geleden |
Nikolay Nikolov
|
da8ccd64ef
+ also write the functype of imported functions in the linker map file
|
1 jaar geleden |
Nikolay Nikolov
|
4f4beb6225
+ store the functype in TWasmObjSymbolLinkingData
|
1 jaar geleden |
Nikolay Nikolov
|
880eb3658a
+ process the module imports and write them to the map file in TWasmExeOutput.AfterUnusedSectionRemoval
|
1 jaar geleden |
Nikolay Nikolov
|
541bd66a6c
+ implemented TWasmExeOutput.GenerateLibraryImports
|
1 jaar geleden |