wasm-linker: Fix archive symbols parsing

When parsing the table of contents containing the symbols and their
positions we initially used the index within the map to retrieve
the offset. However, during resizing of the underlaying array this
would invalidate those indexes which meant incorrect offsets were
being stored for symbols. We now use the current symbol index
to also get the index into the symbol position instead.
476202eec0Luuk de Gram committed on 12/16/2022, 5:31:24 PMparentae106db
2 files changedLine totals unavailable