[PATCH] D40725: Wasm entrypoint changes #3 (add --no-entry argument to LLD) APPLY AFTER D40559
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 1 12:57:47 PST 2017
ruiu added inline comments.
================
Comment at: wasm/Driver.cpp:226
+ return def;
+ // Apparently the empty string is a valid symbol name in Wasm, so we use a
+ // null string to mean "no entrypoint", *not* the empty string.
----------------
ruiu wrote:
> sunfish wrote:
> > sbc100 wrote:
> > > Empty string is not a valid symbol name. Do you have some reason to believe it is?
> > There's a test for it: https://github.com/WebAssembly/testsuite/blob/master/names.wast#L20
> You guys want to ban this by the wasm spec, no? Allowing the empty string as a symbol name isn't beneficial but just confusing, I think.
On second thought, ELF might allow the empty string as a symbol name, but lld (and perhaps a lot of other tools) don't handle it as a valid symbol name because it doesn't worth it. I don't think you want to handle that super edge case.
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D40725
More information about the llvm-commits
mailing list