Nikolay Nikolov
|
3071ae231a
+ wasm internal object reader: validate that relocations that should point to a SYMTAB_FUNCTION entry, actually point to such entry
|
1 tahun lalu |
Nikolay Nikolov
|
baf9681684
* refactor: changed the type of SymbolTable.SymKind to TWasmSymbolType, to avoid type casts. No functional changes.
|
1 tahun lalu |
Nikolay Nikolov
|
00d8d53c4e
* refactor: changed the type RelocationTable.RelocType to avoid type casts. No functional changes.
|
1 tahun lalu |
Nikolay Nikolov
|
d87a6c89d4
* wasm internal object reader: removed the warnings in case of missing symbol (this will now create an internal error, instead)
|
1 tahun lalu |
Nikolay Nikolov
|
a2a85dc7af
* wasm internal object reader: validation of the RelocIndex range moved to a single place - in ReadRelocationSection
|
1 tahun lalu |
Nikolay Nikolov
|
4933d73938
+ support R_WASM_SECTION_OFFSET_I32 relocations in the wasm internal object reader
|
1 tahun lalu |
Nikolay Nikolov
|
39c3d5d035
+ wasm internal object reader: support relocations for debug sections
|
1 tahun lalu |
Nikolay Nikolov
|
dfdc4a4d78
+ wasm internal object reader: record section indices for debug sections. Check for duplicated debug sections.
|
1 tahun lalu |
Nikolay Nikolov
|
6ab2cd3ce9
+ wasm internal object reader: also read the '.debug_frame' and '.debug_str' sections
|
1 tahun lalu |
Nikolay Nikolov
|
ada576e559
+ wasm internal object reader: pass a TWasmCustomDebugSectionType parameter to ReadDebugSection
|
1 tahun lalu |
Nikolay Nikolov
|
543b341203
+ write debug sections in the wasm internal exe writer
|
1 tahun lalu |
Nikolay Nikolov
|
3724e00169
+ wasm object reader: allow other sections to be created before the first code section
|
1 tahun lalu |
Nikolay Nikolov
|
ff4744e0ed
* ignore relocation sections for custom sections for now (will be done later), so that we can proceed with the debug info generation in a later phase
|
1 tahun lalu |
Nikolay Nikolov
|
9a983632f9
+ read debug sections in the wasm internal object reader
|
1 tahun lalu |
Nikolay Nikolov
|
5fe4ab49bc
+ fill the correct minimal number of memory pages required in the wasm internal linker
|
1 tahun lalu |
Nikolay Nikolov
|
93d38629aa
+ added check for whether R_WASM_TABLE_INDEX_I32 relocations always point to a function symbol in the wasm internal object reader
|
1 tahun lalu |
Nikolay Nikolov
|
dd1565c667
* wasm internal exe writer: set mempos for code sections to the offset within
|
1 tahun lalu |
Nikolay Nikolov
|
c49ac16a19
* wasm internal linker: start the .text section at mempos 0
|
1 tahun lalu |
Nikolay Nikolov
|
5eb5fdabad
* start the data at offset 1024 instead of 0, just like the LLVM linker
|
1 tahun lalu |
Nikolay Nikolov
|
baa81d5275
+ allocate stack and set the initial value for the stack pointer in the wasm internal exe writer
|
1 tahun lalu |
Nikolay Nikolov
|
eaf9a9f1b9
* fixed bug in the application of RELOC_GLOBAL_INDEX_LEB fixups in the wasm internal exe writer
|
1 tahun lalu |
Nikolay Nikolov
|
ec206cf490
+ wasm internal linker: write the exported functions to the export section in the exe writer
|
1 tahun lalu |
Nikolay Nikolov
|
c4a77a832f
+ write export section in the wasm internal linker exe writer, only the memory is exported for now
|
1 tahun lalu |
Nikolay Nikolov
|
d03963afe9
+ generate the global section in the wasm internal linker exe writer
|
1 tahun lalu |
Nikolay Nikolov
|
f48282d7b3
+ implemented R_WASM_GLOBAL_INDEX_LEB relocations in the wasm internal linker
|
1 tahun lalu |
Nikolay Nikolov
|
bbeb98aeef
+ wasm internal linker: put all wasm global symbols in separate sections,
|
1 tahun lalu |
Nikolay Nikolov
|
cd93050d7e
* set the size of AT_WASM_GLOBAL symbols to 1
|
1 tahun lalu |
Nikolay Nikolov
|
ef796906e9
+ wasm internal obj reader: add globals to a '.wasm_globals' object section
|
1 tahun lalu |
Nikolay Nikolov
|
2eae62a6e8
* define the __stack_pointer symbol in a different way, so it doesn't crash during linking
|
1 tahun lalu |
Nikolay Nikolov
|
167c7bc565
+ create relocations for R_WASM_GLOBAL_INDEX_LEB entires in the wasm object reader
|
1 tahun lalu |