aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/include/powerpc-linux-gnu
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2021-12-12 16:21:25 +0100
committerAndrew Kelley <andrew@ziglang.org>2021-12-14 14:02:23 -0800
commit50201e1c30e0d71bafd643e9804d55eceb7b3542 (patch)
treef600a02163b1b3bb52bb9df28413df1035d4672f /lib/libc/include/powerpc-linux-gnu
parente563b166b2b70975899c84beb425c8739d05ed65 (diff)
downloadzig-50201e1c30e0d71bafd643e9804d55eceb7b3542.tar.gz
zig-50201e1c30e0d71bafd643e9804d55eceb7b3542.zip
wasm-linker: Allow specifying symbols to be exported
Notating a symbol to be exported in code will only tell the linker where to find this symbol, so other object files can find it. However, this does not mean said symbol will also be exported to the host environment. Currently, we 'fix' this by force exporting every single symbol that is visible. This creates bigger binaries and means host environments have access to symbols that they perhaps shouldn't have. Now, users can tell Zig which symbols are to be exported, meaning all other symbols that are not specified will not be exported. Another change is we now support `-rdynamic` in the wasm linker as well, meaning all symbols will be put in the dynamic symbol table. This is the same behavior as with ELF. This means there's a 3rd strategy users will have to build their wasm binary.
Diffstat (limited to 'lib/libc/include/powerpc-linux-gnu')
0 files changed, 0 insertions, 0 deletions