This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gofrontend-dev] Re: Go patch committed: Don't strip Go programs


I removed the 3 debug sections from libgo that were listed on the objcopy command.

I left in: debug_info, debug_line, debug_abbrev, debug_ranges, and debug_str in their original form.

On 03/02/2015 01:58 PM, Ian Lance Taylor wrote:
On Mon, Mar 2, 2015 at 11:50 AM, Lynn A. Boger
<laboger@linux.vnet.ibm.com> wrote:
objcopy -R .debug_aranges -R .debug_frame -R .debug_loc libgo.so.7.0.0
What percentage of the total size of .debug sections got removed by
this process?

A problem with that approach is that .debug_info and .debug_abbrevs
sections are large but are almost entirely unnecessary to just get
file/line information.  Unfortunately almost unnecessary is not the
same as completely unnecessary; they can be greatly reduced, but not
completely eliminated.

Ian





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]