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
<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