Nikolay Nikolov
|
972a9df031
+ always (even when multithreading is off) create a "target features" section
|
3 years ago |
Nikolay Nikolov
|
bf17a84dd2
+ implemented the R_WASM_FUNCTION_OFFSET_I32 relocation in the WebAssembly object writer
|
3 years ago |
Nikolay Nikolov
|
6a94d2683b
+ emit WASM DWARF debug info relocations
|
3 years ago |
Nikolay Nikolov
|
90305b6032
+ write the actual DWARF debug sections in the WebAssembly object writer. The relocations aren't ready, yet, though.
|
3 years ago |
Nikolay Nikolov
|
b82af25e63
* fixed crashes with the WebAssembly internal object writer, when debug info is enabled. The debug info itself is not yet written to the file, though.
|
3 years ago |
Nikolay Nikolov
|
a9698b6f6e
+ introduced TWasmObjSection.IsDebug
|
3 years ago |
Nikolay Nikolov
|
4db653998b
+ generate proper WebAssembly threadvar access when multithreading is turned on
|
3 years ago |
Nikolay Nikolov
|
fa5575ea54
+ prefix the threadvar sections with '.tbss' when WASM multithreading is enabled
|
3 years ago |
Nikolay Nikolov
|
2606cef21f
+ set the TLS flag for threadvar sections when WASM threads are enabled
|
3 years ago |
Nikolay Nikolov
|
7cd082ba5f
+ produce a target_features section when compiling with -CTwasmthreads
|
3 years ago |
Nikolay Nikolov
|
1dd80d596d
+ added a 'producers' custom section to WebAssembly object modules, containing the FPC version
|
3 years ago |
Nikolay Nikolov
|
ee89b7c9ec
* fixed warning
|
3 years ago |
Nikolay Nikolov
|
0c6287894b
* the WebAssembly internal assembler renamed WASM (previously it was OMF, which was the ID of the MS-DOS .obj writer, which I forgot to rename)
|
3 years ago |
Pierre Muller
|
7c21b37105
Avoid some range check error and convert internalerror into error messages
|
3 years ago |
Pierre Muller
|
c9e8bfd118
Add internalerror if ogwasm tries to write unset Func/Global or TagIndex of TWasmObjSymbol
|
3 years ago |
Nikolay Nikolov
|
cdf1ceca76
* emit a weak symbol for the exception tag, since that's what the LLVM linker
|
3 years ago |
Nikolay Nikolov
|
b463f2a141
+ added support for exception tags and for the 'throw' and 'catch' instructions
|
3 years ago |
Nikolay Nikolov
|
b46c010f82
+ also support immutable wasm globals in the wasm assembler writer (both internal and external)
|
3 years ago |
Nikolay Nikolov
|
7b31549119
* the data section is now only written by the internal wasm object writer, when
|
3 years ago |
Nikolay Nikolov
|
e85aff2b96
* combined TWasmObjSymbol.ImportIndex and .FuncIndex into just .FuncIndex,
|
3 years ago |
Nikolay Nikolov
|
2bce4d36db
+ proper support for WASM globals in the internal object writer - emit
|
3 years ago |
Nikolay Nikolov
|
5ad2d47e23
* track wasm global types in the internal object writer
|
3 years ago |
Nikolay Nikolov
|
0bb781c928
* omit writing the export section if there are no exported functions from
|
3 years ago |
Nikolay Nikolov
|
d37117c460
* use an incrementing counter variable to determine the numbers for the code
|
3 years ago |
Nikolay Nikolov
|
77b898fe45
* use objsym.size to determine the code size of the function (instead of
|
3 years ago |
Nikolay Nikolov
|
2102fbdc97
- removed debug writelns from the wasm internal object writer
|
3 years ago |
Nikolay Nikolov
|
99c84da071
+ generate the export section in the wasm internal obj writer
|
3 years ago |
Nikolay Nikolov
|
abf831c430
+ fixed the addend in the relocations that point to data
|
3 years ago |
Nikolay Nikolov
|
c881d05793
* fixed bug in the code, generated for the RELOC_FUNCTION_INDEX_LEB
|
3 years ago |
Nikolay Nikolov
|
07461d0fc3
* made the constructor of TObjSymbol virtual, so it can be overriden
|
3 years ago |