These can still be exported via --export if needed.
This change was inspired by https://reviews.llvm.org/D62443
Paths
| Differential D62744
[WebAssembly] Don't export __data_end and __heap_start by default. ClosedPublic Authored by sbc100 on May 31 2019, 10:38 AM.
Details Summary These can still be exported via --export if needed. This change was inspired by https://reviews.llvm.org/D62443
Diff Detail
Event TimelineHerald added subscribers: llvm-commits, dexonsmith, steven_wu and 5 others. · View Herald Transcript This revision is now accepted and ready to land.May 31 2019, 2:29 PM Closed by commit rL362276: [WebAssembly] Don't export __data_end and __heap_base by default. (authored by sbc). · Explain WhyMay 31 2019, 3:49 PM This revision was automatically updated to reflect the committed changes.
sbc100 added inline comments.
Revision Contents
Diff 202501 lld/trunk/test/wasm/alias.ll
lld/trunk/test/wasm/archive-export.ll
lld/trunk/test/wasm/call-indirect.ll
lld/trunk/test/wasm/comdats.ll
lld/trunk/test/wasm/cxx-mangling.ll
lld/trunk/test/wasm/data-layout.ll
lld/trunk/test/wasm/entry.ll
lld/trunk/test/wasm/export.ll
lld/trunk/test/wasm/local-symbols.ll
lld/trunk/test/wasm/locals-duplicate.test
lld/trunk/test/wasm/lto/export.ll
lld/trunk/test/wasm/stack-first.test
lld/trunk/test/wasm/undefined-weak-call.ll
lld/trunk/test/wasm/visibility-hidden.ll
lld/trunk/test/wasm/weak-alias-overide.ll
lld/trunk/test/wasm/weak-alias.ll
lld/trunk/test/wasm/weak-symbols.ll
lld/trunk/test/wasm/weak-undefined.ll
lld/trunk/wasm/Config.h
lld/trunk/wasm/Driver.cpp
lld/trunk/wasm/SymbolTable.h
lld/trunk/wasm/SymbolTable.cpp
lld/trunk/wasm/Writer.cpp
|
IIRC, the iteration order of StringSet is different between 32-bit and 64-bit hosts. That's bad for build reproducibility because even if all input files, command line options, and the linker versions are the same, two lld executables create different binaries if one is a 32-bit executable and the other is 64-bit one.
I'd use llvm/ADT/SetVector, which guarantees the iteration order.