Nikolay Nikolov
|
e7f6da4cb0
* the 'linking' section is a section, not a subsection. Fix error messages.
|
1 year ago |
Nikolay Nikolov
|
9063c3c0ed
+ parse the linking custom section by splitting it into subsections and call subfunctions (dummy for now) for each subsection
|
1 year ago |
Nikolay Nikolov
|
8802c7d489
+ parse and check the version of the 'linking' section
|
1 year ago |
Nikolay Nikolov
|
5a5abe2419
+ started parsing of custom sections - known custom sections are dispatched to
|
1 year ago |
Nikolay Nikolov
|
2ae98a7363
+ read the code entries count from the code section
|
1 year ago |
Nikolay Nikolov
|
7d41f5eb92
+ added code section duplicate check in wasm object reader
|
1 year ago |
Nikolay Nikolov
|
b2861bacdd
- removed the repeated section bounds check in the section parsing code,
|
1 year ago |
Nikolay Nikolov
|
8591f1218c
+ added section bounds checking to the read function, used inside TWasmObjInput.ReadObjData.ReadSection
|
1 year ago |
Nikolay Nikolov
|
16c18e845f
- removed the TObjectReader parameter from ReadUleb, ReadUleb32 and ReadName
|
1 year ago |
Nikolay Nikolov
|
01d97bea00
- rm commented out code
|
1 year ago |
Nikolay Nikolov
|
36fe4cf43d
* the ReadUleb, ReadUleb32 and ReadName methods moved to be local functions inside TWasmObjInput.ReadObjData.ReadSection
|
1 year ago |
Nikolay Nikolov
|
c9b407508a
* use ReadUleb32 in more places
|
1 year ago |
Nikolay Nikolov
|
621699acca
+ introduced ReadUleb32 to avoid code repetition of the >high(uint32) checks
|
1 year ago |
Nikolay Nikolov
|
bcb7c069fb
+ parse the data count section
|
1 year ago |
Nikolay Nikolov
|
f87a66f1e6
+ parse the rest of the function section
|
1 year ago |
Nikolay Nikolov
|
c7880e7bd1
+ read the functions count from the functions section
|
1 year ago |
Nikolay Nikolov
|
be56b641d7
+ function section duplicate check
|
1 year ago |
Nikolay Nikolov
|
e81b062e2d
+ WebAssembly object reader: implemented parsing of the import section
|
1 year ago |
Nikolay Nikolov
|
e6a3aa3450
+ import section duplicate check
|
1 year ago |
Nikolay Nikolov
|
3bc6340424
- removed TODO comment
|
1 year ago |
Nikolay Nikolov
|
01dbc63735
+ input error message in case the type section size is unexpected/wrong
|
1 year ago |
Nikolay Nikolov
|
a08c937beb
+ Wasm internal linker, object reader: implemented parsing of the type section
|
1 year ago |
Nikolay Nikolov
|
90e7b2be56
+ added functions for reading the different types of Wasm object sections
|
1 year ago |
Nikolay Nikolov
|
54eb8de658
* write a WebAssembly header in TWasmExeOutput.writeData
|
1 year ago |
Nikolay Nikolov
|
6bead20fc3
* set CObjData in the TWasmExeOutput constructor
|
1 year ago |
Nikolay Nikolov
|
5a61f51b3c
+ added TWasmExeOutput class (not implemented, yet)
|
1 year ago |
Nikolay Nikolov
|
d98d0c5e62
+ started implementing TWasmObjInput.ReadObjData
|
1 year ago |
Nikolay Nikolov
|
b9668a88c6
+ implemented TWasmObjInput.CanReadObjData: checks for WASM header and version
|
1 year ago |
Nikolay Nikolov
|
bc727f9fb2
+ added TWasmObjInput class. To be used in the WASM internal linker. Not doing anything, yet.
|
1 year ago |
Nikolay Nikolov
|
322befbf56
+ added mutable globals to the target switches section
|
2 years ago |