This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gofrontend-dev] Re: Go patch committed: Don't strip Go programs
- From: Ian Lance Taylor <iant at golang dot org>
- To: Matthias Klose <doko at ubuntu dot com>
- Cc: Lynn Boger <laboger at linux dot vnet dot ibm dot com>, "gofrontend-dev at googlegroups dot com" <gofrontend-dev at googlegroups dot com>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 27 Feb 2015 12:46:14 -0800
- Subject: Re: [gofrontend-dev] Re: Go patch committed: Don't strip Go programs
- Authentication-results: sourceware.org; auth=none
- References: <CAOyqgcX--ZaBLOErNaRcON8jd_SDU878U4bdHjbAsQQ=+itH=w at mail dot gmail dot com> <9c9cb300-1008-4760-9c91-9070c827af67 at googlegroups dot com> <CAOyqgcXrwPthjncV8Ft3ZAmrK=WGH54XBX7jhWuGduNy2g8o3Q at mail dot gmail dot com> <54F0CE65 dot 8070403 at ubuntu dot com>
On Fri, Feb 27, 2015 at 12:07 PM, Matthias Klose <doko@ubuntu.com> wrote:
>
> is there anything which could be stripped without scarifying functionality?
> Linux distributions usually strip things by default, so a hint what exactly is
> needed to keep the functionality would be appreciated.
What is needed is file/line information. However, I don't know of an
option to strip that discards most debug info but keeps file/line
info. The gold linker can do it (--strip-debug-non-line) but that
obviously would have to be used when building the library; it doesn't
help at install time.
Ian