[Development] Using dwz on Qt
annulen at yandex.ru
Thu May 14 12:39:38 CEST 2020
14.05.2020, 13:34, "Allan Sandfeld Jensen" <kde at carewolf.com>:
> 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.
FWIW, I've already reported it at https://bugreports.qt.io/browse/QTBUG-82681
> 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.
FWIW, I'm using this code for separating and compressing debug info:
More information about the Development