Re:Debug Information Is Huge and What to Do About It
by loeg on Tuesday October 31, 2017 @04:33PM
(#15596297)
You need some debug information to get accurate backtraces. But you can discard the rest of the debug information that you don't need. The article actually mentions this a little bit near the end, starting around:
> For example, if you would only like accurate unwinding then you can retain only .debug_frame and .debug_line.
The ultimate goal is to get a backtrace without debug symbol (in release) but I don't know any method to achieve that without instrumentation.