gecko-dev/mozglue/static
Mike Hommey fc327076fb Bug 1918285 - Avoid lz4frame symbols being exported from gtest libxul. r=firefox-build-system-reviewers,sergesanspaille
The lz4 symbols were never meant to be exposed, the API in Compression.h
being the official way to use it. This is we had LZ4LIB_VISIBILITY set to
nothing. Unfortunately, that wasn't enough, because there is another
similar define for lz4frame: LZ4FLIB_VISIBILITY.

So we had been exporting those lz4frame symbols from firefox-bin
forever, without noticing, but it didn't cause problems until the
symbols were moved to libxul. With them moved to libxul, we end up
with the situation where we might actually end up using the symbols
from the system liblz4, which is pulled indirectly through other
dependencies (through libsystemd, which comes through libdbus).

This is all fine-ish on a "normal" opt build, but with LTO, things
end up such that some calls go through our copy of lz4frame and others
through the system one, and the discrepancy causes a crash.

The symbols file for non-gtest libxul, that hides all symbols but a few,
was saving the non-gtest case, fortunately.

Differential Revision: https://phabricator.services.mozilla.com/D222574
2024-09-18 05:23:16 +00:00
..
lz4 Bug 1917739 - Move Lz4 and mfbt/Compression* to mozglue/static. r=nika,frontend-codestyle-reviewers 2024-09-10 20:35:56 +00:00
rust Bug 1917744 - Adjust mozglue build script for rustc 1.83. r=glandium 2024-09-10 03:35:01 +00:00
Compression.cpp Bug 1917739 - Move Lz4 and mfbt/Compression* to mozglue/static. r=nika,frontend-codestyle-reviewers 2024-09-10 20:35:56 +00:00
Compression.h Bug 1917739 - Move Lz4 and mfbt/Compression* to mozglue/static. r=nika,frontend-codestyle-reviewers 2024-09-10 20:35:56 +00:00
moz.build Bug 1918285 - Avoid lz4frame symbols being exported from gtest libxul. r=firefox-build-system-reviewers,sergesanspaille 2024-09-18 05:23:16 +00:00
README

mozglue/static contains parts of the mozglue library that can/should be
statically linked to e.g. js/Gecko.