Commit Graph

68974 Commits

Author SHA1 Message Date
Nikolay Nikolov
3121f3f8a0 * wasm internal object reader: validate that R_WASM_TAG_INDEX_LEB relocations point to a SYMTAB_EVENT symbol 2024-01-07 01:43:47 +02:00
Nikolay Nikolov
962b36a6e8 + wasm internal object reader: create symbols for SYMTAB_EVENT entries in the symbol table 2024-01-07 01:42:12 +02:00
Nikolay Nikolov
09accffd28 + wasm internal object reader: range check event symbols against the tag index space (imports + tag section) 2024-01-07 01:33:00 +02:00
Nikolay Nikolov
02b7cc0e56 + wasm internal object reader: read tags from the export section 2024-01-07 01:29:10 +02:00
Nikolay Nikolov
79d739baa6 + wasm internal object reader: bounds check the tag type index against the types table 2024-01-07 01:25:48 +02:00
Nikolay Nikolov
2de0bcb8d0 + wasm internal object reader: store the tags from the tag section in the TagTypes array 2024-01-07 01:23:05 +02:00
Nikolay Nikolov
55002d1905 + wasm internal object reader: read tag imports 2024-01-07 01:15:13 +02:00
Nikolay Nikolov
c527437594 + wasm internal object reader: parse the tag section 2024-01-07 01:06:04 +02:00
Nikolay Nikolov
7f3ed9e85c * wasm internal linker: skip the element section when reading object files. This fixes linking with object modules, produced by the external assembler. 2024-01-07 00:11:59 +02:00
Nikolay Nikolov
6a9376cb9e * wasm internal linker: fixed the relocation of imported function symbol aliases 2024-01-06 23:53:15 +02:00
Nikolay Nikolov
b8db469c48 + WASI internal linker: simplify linker script generation for the .text, .rodata, .data and .bss sections via the use of ScriptAddGenericSections 2024-01-06 23:26:14 +02:00
Nikolay Nikolov
749688b3b0 + WASI internal linker: also add .debug_frame and .debug_str sections to the output binary 2024-01-06 23:24:26 +02:00
Nikolay Nikolov
49395f2b00 + WASI internal linker: add all object sections, starting with '.bss' to the .bss section 2024-01-06 23:22:25 +02:00
Rika Ichinose
35345fe145 Fix FillQWord_SSE2 stack usage. 2024-01-06 21:18:56 +00:00
florian
94a56ba3d5 + test from Rika for merge request 566 2024-01-06 22:18:30 +01:00
Michaël Van Canneyt
29f2f12496 * Some code cleanup in Extract* functions. Fixes issue #40587 2024-01-06 21:42:03 +01:00
Nikolay Nikolov
aac37e3179 * fix warning 2024-01-06 22:10:34 +02:00
Nikolay Nikolov
4b2a924ea0 * fix warning 2024-01-06 22:05:35 +02:00
Nikolay Nikolov
3fddae4a40 + wasm internal linker: implemented R_WASM_FUNCTION_OFFSET_I32 relocations 2024-01-06 21:55:20 +02:00
Nikolay Nikolov
b679f8bc06 - wasm internal object reader: removed redundant check for R_WASM_TABLE_INDEX_I32 pointing to a SYMTAB_FUNCTION entry (we now do this check earlier) 2024-01-06 21:39:31 +02:00
Nikolay Nikolov
e3b6d70f93 * wasm internal linker: set mempos of debug sections to 0 2024-01-06 21:16:31 +02:00
Nikolay Nikolov
baee5b9fd4 * wasm internal linker: perform R_WASM_SECTION_OFFSET_I32 relocations 2024-01-06 21:12:22 +02:00
Nikolay Nikolov
1061965ea5 + wasm internal object reader: check that R_WASM_GLOBAL_INDEX_LEB point to a SYMTAB_GLOBAL symbol 2024-01-06 21:03:02 +02:00
Nikolay Nikolov
30c8930c30 * fix warning 2024-01-06 21:00:14 +02:00
Nikolay Nikolov
dc16426790 + wasm internal object reader: check that relocations that should point to a SYMTAB_DATA symbol, actually point to such symbol 2024-01-06 20:57:23 +02:00
Nikolay Nikolov
b35c118244 + wasm internal object reader: added range check to the reader of the SymKind field 2024-01-06 20:54:04 +02:00
Nikolay Nikolov
f3401c3f53 * fix warning 2024-01-06 20:51:35 +02:00
Karoly Balogh
0bb6ab24a2 m68k-atari: regenerated Makefile 2024-01-06 19:36:50 +01:00
Karoly Balogh
2ec9f59b38 m68k-atari: fix installation of sysconts and heaptrc units 2024-01-06 19:36:50 +01:00
Nikolay Nikolov
3071ae231a + wasm internal object reader: validate that relocations that should point to a SYMTAB_FUNCTION entry, actually point to such entry 2024-01-06 20:30:20 +02:00
Nikolay Nikolov
baf9681684 * refactor: changed the type of SymbolTable.SymKind to TWasmSymbolType, to avoid type casts. No functional changes. 2024-01-06 20:26:27 +02:00
Nikolay Nikolov
00d8d53c4e * refactor: changed the type RelocationTable.RelocType to avoid type casts. No functional changes. 2024-01-06 20:22:47 +02:00
Nikolay Nikolov
d87a6c89d4 * wasm internal object reader: removed the warnings in case of missing symbol (this will now create an internal error, instead) 2024-01-06 20:18:14 +02:00
Nikolay Nikolov
a2a85dc7af * wasm internal object reader: validation of the RelocIndex range moved to a single place - in ReadRelocationSection 2024-01-06 20:14:40 +02:00
Nikolay Nikolov
4933d73938 + support R_WASM_SECTION_OFFSET_I32 relocations in the wasm internal object reader 2024-01-06 20:06:54 +02:00
Nikolay Nikolov
39c3d5d035 + wasm internal object reader: support relocations for debug sections 2024-01-06 19:30:14 +02:00
Nikolay Nikolov
dfdc4a4d78 + wasm internal object reader: record section indices for debug sections. Check for duplicated debug sections. 2024-01-06 19:08:01 +02:00
Pierre Muller
f510e6f59b Use GetProcAddress to set GetFinalPathNameByHandle function pointer 2024-01-06 17:54:21 +01:00
Nikolay Nikolov
6ab2cd3ce9 + wasm internal object reader: also read the '.debug_frame' and '.debug_str' sections 2024-01-06 18:51:22 +02:00
Nikolay Nikolov
ada576e559 + wasm internal object reader: pass a TWasmCustomDebugSectionType parameter to ReadDebugSection 2024-01-06 18:47:32 +02:00
Pierre Muller
37ffd4051a Add dependency on objpas unit for syscall unit compiled with -dFPC_USE_LIBC 2024-01-06 17:06:51 +01:00
Pierre Muller
7c9cf75418 Fix syscall unit compilation for i386-linux using -dFPC_USE_LIBC 2024-01-06 17:06:51 +01:00
Michaël Van Canneyt
48c27aea1e * Remove leftover statement 2024-01-06 15:32:01 +01:00
Pierre Muller
2cb7e44a1b Fix compilation of syscall unit for Linux with -dFPC_USE_LIBC option 2024-01-05 17:46:49 +01:00
mattias
f6de2c5756 pastojs: fixed compile with pas2js 2024-01-05 16:18:40 +01:00
mattias
3423fa9a82 fcl-passrc: fixed compile with pas2js 2024-01-05 16:18:22 +01:00
mattias
450f250b2c fcl-json: fixed compile with pas2js 2024-01-05 16:18:12 +01:00
Michaël Van Canneyt
6040943918 * Make sure dummy tprocess compiles 2024-01-05 00:04:25 +01:00
Pierre Muller
7f05fee3b8 Fix failing targets for fcl-process by changing Execute into SysExecute inside src/*/process.inc files 2024-01-04 22:57:07 +01:00
Sven/Sarah Barth
c11772deca * ensure that the SysCall unit is also usable when FPC_USE_LIBC is defined 2024-01-04 22:26:15 +01:00