aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2023-01-02 15:45:35 +0100
committerLuuk de Gram <luuk@degram.dev>2023-01-03 10:02:54 +0100
commitb9224c172fea2399623bd707a10e021e776329bc (patch)
tree0b219ff58e217077a274f98cf0453a4938464c90 /src/Compilation.zig
parentf9b3e8c762450c20a13c3f51ab91398f409781fb (diff)
downloadzig-b9224c172fea2399623bd707a10e021e776329bc.tar.gz
zig-b9224c172fea2399623bd707a10e021e776329bc.zip
wasm-linker: Fix & mangle symbol name of imports
When outputting the names section, we should output the actual symbol name rather than the import name. This makes sure that symbols with an explicit name set have the correct name but retain the import name too. We also now correctly mangle the name of an extern function with an explicit library name. This ensures that functions that have a different library name, but the same import/function name, can be resolved correctly with other modules and don't resolve to the same symbol.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions