-
Notifications
You must be signed in to change notification settings - Fork 0
Description
I came across the symbolization support page for cpp and the steps documented to add debug information. There are a couple of options in clang and gcc which can be more effective.
-
The
-g(equivalent to-g2) flag generates a lot of debug information, most of which is unnecessary for symbolization. You can reduce the amount of debug information to only line tables by using-gmltor-g1. -
The
-gsplit-dwarfflag can generate debug information in a separate file. This helps reduce memory (and time) when linking large binaries with debug information in them. The debug information for each object file is placed in a.dwofile which can then be linked together to a single.dwpfile. I believe this will save the objcopy steps.
Have you considered using these options?