On Sat, Apr 25, 2009 at 10:30:51AM -0700, Ian Lance Taylor wrote: > Andi Kleen <a...@firstfloor.org> writes: > > > On Fri, Apr 24, 2009 at 08:24:56PM -0400, Frank Ch. Eigler wrote: > >> > >> I'm working on a little patch that extends the data produced for the > >> little-used (?) -g1 mode. Normally, this produces very little DWARF > >> data (basically just function declaration locus, PC range, and basic > >> backtrace-enabling data). Compared to normal -g (== -g2) mode, this > >> is very small. > > > > I think what I would like to have is a modus to generate line numbers > > (so that objdump -S works nicely) but nothing else. That would be useful > > for crash dump analysis etc. > > It's not quite that, but the gold linker has a --strip-debug-non-line > option which discards all the debugging information except what is > needed to map addresses to lines.
The reason I would like to have it is that generating so much data slows down gcc compilation a lot and there are cases where I don't need the full data. Striping it in the linker is a start, but doesn't address the size of the object files. So doing it in the compiler would be better. -Andi -- a...@linux.intel.com -- Speaking for myself only.