https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86964
Johan.karlsson at enea dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Johan.karlsson at enea dot com --- Comment #5 from Johan.karlsson at enea dot com --- I'm also affected by this "lack of feature" I looked into dwarf2out.c to see what I could do about it. Unfortunately I quickly noticed that I'm definitely going to break stuff if I try to tweak the code. So I'm hoping that some GCC developer can take the time implement -feliminate-unused-debug-symbols for DWARF. Right now the ELF file gets so large the my debugger crashes. So I'm stuck using GCC 4 or 5.