Nikolay Nikolov
|
10b201c506
|
+ check for duplicated data sections
|
2023-12-26 16:39:29 +02:00 |
|
Nikolay Nikolov
|
6f7c1b5b4e
|
+ added DataSegments dynarray of record, that will store data segment info
|
2023-12-26 16:32:30 +02:00 |
|
Nikolay Nikolov
|
e3c5d016e0
|
+ check for duplicated WASM_SEGMENT_INFO subsections
|
2023-12-26 16:26:37 +02:00 |
|
Nikolay Nikolov
|
3121ee1367
|
+ parse the WASM_SEGMENT_INFO subsection
|
2023-12-26 16:24:05 +02:00 |
|
Nikolay Nikolov
|
8a7743b566
|
* set FReader and InputFileName in the beginning of TWasmObjInput.ReadObjData
|
2023-12-26 16:07:34 +02:00 |
|
Nikolay Nikolov
|
e7f6da4cb0
|
* the 'linking' section is a section, not a subsection. Fix error messages.
|
2023-12-26 15:07:42 +02:00 |
|
Nikolay Nikolov
|
9063c3c0ed
|
+ parse the linking custom section by splitting it into subsections and call subfunctions (dummy for now) for each subsection
|
2023-12-26 15:06:03 +02:00 |
|
Nikolay Nikolov
|
8802c7d489
|
+ parse and check the version of the 'linking' section
|
2023-12-26 14:42:51 +02:00 |
|
Nikolay Nikolov
|
5a5abe2419
|
+ started parsing of custom sections - known custom sections are dispatched to
a specialized parsing function for each of them, while unknown custom sections
(currently the ones, not produced by FPC) produce an error
|
2023-12-26 14:32:34 +02:00 |
|
Nikolay Nikolov
|
2ae98a7363
|
+ read the code entries count from the code section
|
2023-12-26 13:57:55 +02:00 |
|
Nikolay Nikolov
|
7d41f5eb92
|
+ added code section duplicate check in wasm object reader
|
2023-12-26 13:49:40 +02:00 |
|
Nikolay Nikolov
|
b2861bacdd
|
- removed the repeated section bounds check in the section parsing code,
because now all reads go through the read function, which does section bounds
checking on every read
|
2023-12-26 13:42:07 +02:00 |
|
Nikolay Nikolov
|
8591f1218c
|
+ added section bounds checking to the read function, used inside TWasmObjInput.ReadObjData.ReadSection
|
2023-12-26 13:40:26 +02:00 |
|
Nikolay Nikolov
|
16c18e845f
|
- removed the TObjectReader parameter from ReadUleb, ReadUleb32 and ReadName
|
2023-12-26 13:24:29 +02:00 |
|
Nikolay Nikolov
|
01d97bea00
|
- rm commented out code
|
2023-12-26 13:13:42 +02:00 |
|
Nikolay Nikolov
|
36fe4cf43d
|
* the ReadUleb, ReadUleb32 and ReadName methods moved to be local functions inside TWasmObjInput.ReadObjData.ReadSection
|
2023-12-26 13:12:44 +02:00 |
|
Nikolay Nikolov
|
c9b407508a
|
* use ReadUleb32 in more places
|
2023-12-26 12:46:06 +02:00 |
|
Nikolay Nikolov
|
621699acca
|
+ introduced ReadUleb32 to avoid code repetition of the >high(uint32) checks
|
2023-12-26 11:43:49 +02:00 |
|
Nikolay Nikolov
|
bcb7c069fb
|
+ parse the data count section
|
2023-12-26 10:25:20 +02:00 |
|
Michaël Van Canneyt
|
722711d675
|
* Fix project
|
2023-12-25 16:49:20 +01:00 |
|
Michaël Van Canneyt
|
5d20c0f749
|
* Add const for string where possible
|
2023-12-25 16:48:52 +01:00 |
|
Michaël Van Canneyt
|
4d1e201975
|
* Fix AV due to not initialized FullName field. Patch by Bart B. Fixes issue #40489
|
2023-12-25 15:11:38 +01:00 |
|
Michaël Van Canneyt
|
9efa161ea7
|
* minor improvement for TPasRecordType.IsAdvancedRecord. Fixes issue #40539
|
2023-12-25 14:59:30 +01:00 |
|
Michaël Van Canneyt
|
f206de7030
|
* Namespaced version of testinsight units
|
2023-12-25 14:57:18 +01:00 |
|
Michaël Van Canneyt
|
952f6ebf23
|
* Test insight client
|
2023-12-25 14:13:36 +01:00 |
|
Nikolay Nikolov
|
f87a66f1e6
|
+ parse the rest of the function section
|
2023-12-24 16:56:28 +02:00 |
|
Nikolay Nikolov
|
c7880e7bd1
|
+ read the functions count from the functions section
|
2023-12-24 16:53:05 +02:00 |
|
Nikolay Nikolov
|
be56b641d7
|
+ function section duplicate check
|
2023-12-24 16:51:23 +02:00 |
|
Nikolay Nikolov
|
e81b062e2d
|
+ WebAssembly object reader: implemented parsing of the import section
|
2023-12-24 16:35:39 +02:00 |
|
Nikolay Nikolov
|
57aead9a14
|
+ added const sets for the WebAssembly reference, numeric and vector types
|
2023-12-24 16:35:39 +02:00 |
|
Nikolay Nikolov
|
e6a3aa3450
|
+ import section duplicate check
|
2023-12-24 16:35:39 +02:00 |
|
Michaël Van Canneyt
|
124834fe29
|
* SUBTARGET defines
|
2023-12-24 15:08:06 +01:00 |
|
Michaël Van Canneyt
|
126cc09037
|
* Correct check on command-line for -t
|
2023-12-24 15:03:41 +01:00 |
|
Nikolay Nikolov
|
3bc6340424
|
- removed TODO comment
|
2023-12-24 15:28:01 +02:00 |
|
Nikolay Nikolov
|
01dbc63735
|
+ input error message in case the type section size is unexpected/wrong
|
2023-12-24 15:04:22 +02:00 |
|
Nikolay Nikolov
|
a08c937beb
|
+ Wasm internal linker, object reader: implemented parsing of the type section
|
2023-12-24 14:57:16 +02:00 |
|
Nikolay Nikolov
|
2626b85984
|
+ introduced decode_wasm_basic_type function
|
2023-12-24 14:30:06 +02:00 |
|
Nikolay Nikolov
|
90e7b2be56
|
+ added functions for reading the different types of Wasm object sections
|
2023-12-24 14:12:53 +02:00 |
|
Nikolay Nikolov
|
34445a912a
|
* implementation of TInternalLinkerWasi.DefaultLinkScript. Create a script that reads all the object files.
|
2023-12-24 12:45:18 +02:00 |
|
Nikolay Nikolov
|
54eb8de658
|
* write a WebAssembly header in TWasmExeOutput.writeData
|
2023-12-24 12:42:29 +02:00 |
|
Nikolay Nikolov
|
340499dd3a
|
* override GetCodeSize, GetDataSize and GetBssSize in TInternalLinkerWasi to avoid crash
|
2023-12-24 12:38:52 +02:00 |
|
Nikolay Nikolov
|
6bead20fc3
|
* set CObjData in the TWasmExeOutput constructor
|
2023-12-24 12:35:50 +02:00 |
|
Nikolay Nikolov
|
0f8ecb73e7
|
* override and implement TInternalLinkerWasi.InitSysInitUnitName
|
2023-12-24 12:30:56 +02:00 |
|
Nikolay Nikolov
|
7879387861
|
* enable the WASM internal linker, in case the compiler is compiled with the ENABLE_WASM_INTERNAL_LINKER define
|
2023-12-24 12:22:59 +02:00 |
|
Nikolay Nikolov
|
790a58be52
|
+ added ld_int_wasi constant. Register the WASI internal linker.
|
2023-12-24 12:18:15 +02:00 |
|
Michaël Van Canneyt
|
3b7d6d21e2
|
* Fix AV when freeing transactions. Reported by Pascal Riekenberg. Fixes issuu #40571
|
2023-12-23 23:11:25 +01:00 |
|
Karoly Balogh
|
65234c674a
|
human68k: less fail in regenerating a Makefile
|
2023-12-23 16:05:32 +01:00 |
|
Karoly Balogh
|
7c3e792bc1
|
human68k: regenerated Makefile after the previous commit
|
2023-12-23 15:36:51 +01:00 |
|
Karoly Balogh
|
c38280ef3e
|
human68k: added a totally untested DOS unit to the RTL
|
2023-12-23 15:36:51 +01:00 |
|
Karoly Balogh
|
53e7006d56
|
m68k: fix the assembler reader to bail out earlier on a failed parsing of a constant expression
|
2023-12-23 15:36:51 +01:00 |
|