Bug 1836369 - Only export XRE_GetBootstrap symbol from libxul r=glandium
commit9056a63841748f780afc602a3a65c6eaf589ad94
authorserge-sans-paille <sguelton@mozilla.com>
Fri, 9 Jun 2023 19:31:18 +0000 (9 19:31 +0000)
committerserge-sans-paille <sguelton@mozilla.com>
Fri, 9 Jun 2023 19:31:18 +0000 (9 19:31 +0000)
treec4f487a8ff0e8a95aff160fc359730a768e69116
parent0c59efb17df349fde6656b3ea436a095f1183147
Bug 1836369 - Only export XRE_GetBootstrap symbol from libxul r=glandium

Better control of the ABI has its own merit, but in that case, we
significantly shrink the amount of dynamic symbol, which in turns
reduces the size of the binary.

As this limits the exported symbol to one, there's no longer a risk to
conflict with libjs, so just remove the symbol versioning.

On linux64 opt build, this saves ~2.5MB on the installer size libxul.so

Differential Revision: https://phabricator.services.mozilla.com/D179806
toolkit/library/libxul.symbols [new file with mode: 0644]
toolkit/library/moz.build
toolkit/library/symverscript.in [deleted file]