The LLVM "hidden" flag needs to be passed through the Wasm intermediate objects in order for the linker to apply it to the final Wasm object.
The corresponding change in LLD is here: https://github.com/WebAssembly/lld/pull/14
Paths
| Differential D40442
Add visibility flag to Wasm symbol flags ClosedPublic Authored by ncw on Nov 24 2017, 7:24 AM.
Details Summary The LLVM "hidden" flag needs to be passed through the Wasm intermediate objects in order for the linker to apply it to the final Wasm object. The corresponding change in LLD is here: https://github.com/WebAssembly/lld/pull/14
Diff Detail
Event TimelineHerald added subscribers: sunfish, jgravelle-google, dschuff. · View Herald TranscriptNov 28 2017, 6:14 AM
Comment Actions lgtm, with a minor change
This revision is now accepted and ready to land.Nov 28 2017, 9:43 AM Closed by commit rL319488: Add visibility flag to Wasm symbol flags (authored by sbc). · Explain WhyNov 30 2017, 2:35 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 125025 llvm/trunk/include/llvm/BinaryFormat/Wasm.h
llvm/trunk/include/llvm/MC/MCSymbolWasm.h
llvm/trunk/include/llvm/Object/Wasm.h
llvm/trunk/lib/MC/MCWasmStreamer.cpp
llvm/trunk/lib/MC/WasmObjectWriter.cpp
llvm/trunk/lib/Object/WasmObjectFile.cpp
llvm/trunk/test/MC/WebAssembly/visibility.ll
|