This flag works in a similar way to the ELF linker in that it
will resolve any defined symbols to their local definition with
a shared library.
This is also the default behavior for or -pie executables.
Differential D89152
[lld][WebAssembly] Add support for -Bsymbolic sbc100 on Oct 9 2020, 11:06 AM. Authored by
Details This flag works in a similar way to the ELF linker in that it This is also the default behavior for or -pie executables.
Diff Detail
Event TimelineComment Actions This change will allows us to remove the corresponding binaryen code: https://github.com/WebAssembly/binaryen/pull/3211 and instead pass -Bsymbolic when linking MAIN_MODULE's in emscripten.
Comment Actions
(I've got a herald rule to auto-add myself to reviews touching llvm-readobj amongst other tools - no point trying to work around it!)
Comment Actions Sorry, didn't mean to try to work around your herald stuff, I also use herald to be notified about WebAssembly related thing. I think I was just trying to be precise about who I thought would be good reviewer. I won't remove your name anymore from that field. In general, would it would make sense to add yourself to subscriber rather than reviewer if you want to monitor all changes in these areas? You could then add yourself as a reviewer to change that you care about? Or do you want to actually be a reviewer all of all change to lld? For example, this specific change, do you want to be a reviewer?
Comment Actions Sorry, I see now that it was probably the fact that I touched objdump here that added you as a reviewer. My comment is less relevant in that case I guess. Comment Actions No problem! I'm keen to keep an eye on patches in the LLVM binutils (readelf, objdump etc), mostly for ELF, but I often chip in on other platforms too, in an effort to maintain consistency, make sure documentation is sorted etc. I'm not bothered by LLD (and don't have a herald rule setup for that), though I do sometimes help out with reviews in the ELF part of LLD too. Comment Actions I'm not an expert on the LLVM details here, but, the logic looks correct and that it properly corresponds to the original idea of this optimization (that this will replace).
|
In ELF, -Bsymbolic is redundant for executables (-no-pie or -pie).