On Mon, Mar 2, 2015 at 12:05 PM, Lynn A. Boger <labo...@linux.vnet.ibm.com> wrote: > 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.
Understood. I mean: if you add up the total sizes of the original debug info sections, and the total sizes of the remaining debug info sections, what percentage of the total debug info did you remove? After all, the only point of removing debug info is to decrease the size of the files. Ian > On 03/02/2015 01:58 PM, Ian Lance Taylor wrote: >> >> On Mon, Mar 2, 2015 at 11:50 AM, Lynn A. Boger >> <labo...@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 >> >> >> >