[Development] Using dwz on Qt
Allan Sandfeld Jensen
kde at carewolf.com
Thu May 14 12:30:59 CEST 2020
Hi Qt
I recently discovered there is a binutils tools for size optimizing dwarf
debug symbols, and it really works. When applied to Qt debug symbol binaries
it makes them about 25% smaller on average (some up to 40% smaller). And that
is just the simple optimization. We can save more by combining duplicates from
multiple debug symbol binaries into one shared one, but that would change the
files we ship.
In any case. While too late for 5.15 and written for qmake so not suitable for
qt6, I would like to share my minimal change with you here, in case anybody
would like to ship smaller debug binaries.
Is there an existing cmake way to trigger the same? Though we might also want
to consider triggering compressed dwarf symbols at the same time, as that is
another great reduction, but ups the minimum tool versions required.
Best regards
'Allan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dwz.diff
Type: text/x-patch
Size: 1140 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20200514/1e73274c/attachment.bin>
More information about the Development
mailing list