[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#42555] [PATCH v2 core-updates] build-system/gnu: strip with --strip
[bug#42555] [PATCH v2 core-updates] build-system/gnu: strip with --strip-unneeded
Sat, 19 Sep 2020 15:49:31 +0200
On Sat Sep 19, 2020 at 4:49 PM CEST, Ludovic Courtès wrote:
> Hi Jakub,
> Jakub Kądziołka <email@example.com> skribis:
> > Apart from debug information, one can also strip some symbols. This can
> > be a significant difference, the closure of gcc-toolchain@7 got reduced
> > by 15 MB in my tests.
> Nice! Now’s a good time to get that patch in on ‘core-updates’.
Thanks. Patch pushed (with a small hiccup...)
> > : https://stackoverflow.com/a/52555093
> Perhaps we can omit this one. In general, I think it’s safer to refer
> to “primary sources” as Wikipedians would say.
The problem with "primary sources" is that the docs on this are quite
sparse. I think this link is much more comprehensive.
> > : http://www.linuxfromscratch.org/lfs/view/9.1/chapter05/stripping.html
> > : https://www.technovelty.org/linux/stripping-shared-libraries.html
> > * guix/build/gnu-build-system.scm (strip): Use --strip-unneeded.
> > * guix/build-system/gnu.scm (static-package, gnu-build, gnu-cross-build):
> > Likewise.
> For the record, I tried ‘--strip-all’ before, but that was
> for some reason:
The docs for --strip-all say "Do not copy relocation and symbol
information", so I would expect some relocation and/or linking use case
to get broken...