mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 11:37:43 -10:00
This relies on the fact that providing multiple --version-script combines them all, so we effectively create a new symbol version that has no global symbol, but hides as much std::* stuff as possible. The added symbol script could use `extern "C++"` syntax and demangled symbols but there is no guarantee the demangled symbols won't change. Plus, it's not possible to match demangled symbols that have a return type: they contain a space, and the only way to match that is to use double quotes, which doesn't allow globs at the same time. This version script trick happens to work with BFD ld, gold, and lld. The downside is that when providing multiple --version-script's, ld doesn't want any of them to have no version at all. So for the libraries that do already have a version script (through SYMBOLS_FILE), we use a version where there used to be none, using the library name as the version. Practically speaking, this binds the libraries a little closer than they used to be, kind of non-flat namespace on OSX (which is the default there), meaning the dynamic linker will actively want to use symbols from those libraries instead of a system library that might happen to have the same symbol name.
This directory contains common Python code. The basic rule is that if Python code is cross-module (that's "module" in the Mozilla meaning - as in "module ownership") and is MPL-compatible, it should go here. What should not go here: * Vendored python modules (use third_party/python instead) * Python that is not MPL-compatible (see other-licenses/) * Python that has good reason to remain close to its "owning" (Mozilla) module (e.g. it is only being consumed from there). Historical information can be found at https://bugzilla.mozilla.org/show_bug.cgi?id=775243 https://bugzilla.mozilla.org/show_bug.cgi?id=1346025