diff options
| author | Luuk de Gram <luuk@degram.dev> | 2022-02-21 21:43:38 +0100 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2022-02-23 16:07:36 +0100 |
| commit | acec06cfaf9a82ec8037a23993ff36fa72eb6e82 (patch) | |
| tree | 6fbabbcf1bedaf2b46ee42c170f187c2a34648f5 /src/codegen/c.zig | |
| parent | 0a48a763fd3548a7b8609555cecbafc21ebe1fc3 (diff) | |
| download | zig-acec06cfaf9a82ec8037a23993ff36fa72eb6e82.tar.gz zig-acec06cfaf9a82ec8037a23993ff36fa72eb6e82.zip | |
wasm-linker: Implement `updateDeclExports`
We now correctly implement exporting decls. This means it is possible to export
a decl with a different name than the decl that is doing the export.
This also sets the symbols with the correct flags, so when we emit a relocatable
object file, a linker can correctly resolve symbols and/or export the symbol to the host environment.
This commit also includes fixes to ensure relocations have the correct offset to how other
linkers will expect the offset, rather than what we use internally.
Other linkers accept the offset, relative to the section.
Internally we use an offset relative to the atom.
Diffstat (limited to 'src/codegen/c.zig')
0 files changed, 0 insertions, 0 deletions
