Background:
I have a need of the debugging information of the code in our project. The following two approaches are available:
- Compile using
-gand afterwards use GNU binary utilitiesstripandobjcopyto strip the debugging information into a separate file. - Compile using
-gsplit-dwarf
Question
The second approach creates a .dwo for each translation unit in the application.
Although this would improve the linker time. But with the huge number of translation files, this would create management headache for us.
Is there a way to combine all the .dwo files into a single file per binary ?
System Info
Compiler : GCC toolchain.
OS: CentOS/RH 7/8