Strips binary keep a static symbol table
Strips binary, we still to keep a static symbol table for good stack traces.
Strips binary, we still to keep a static symbol table for good stack traces.
strip-debug will make the binary file larger. Have you tested the difference between using strip-debug and not using strip-debug?
Only 20M of size has been added, I think it can be ignored.
Only
20Mof size has been added, I think it can be ignored.
Can you provide a case to compare the difference in stack information before and after using strip-debug?
before:
after:
Tools such as pstack and perf will become available.
@linrunqi08 Has it been closed?
@linrunqi08 Has it been closed?
Sorry, maybe I clicked the button by mistake.
before:
after:
Tools such as
pstackandperfwill become available.
Thank you very much for your test results and suggestions. But I think strip should not keep debug information in release mode, but I think there can be more CMAKE_BUILD_TYPE types, such as relwithdebinfo, in which strip can use the strip-debug parameter to keep some symbols. If you agree with my suggestions, you can make some modifications to the PR.
Sorry, the above test is obtained in RelWithDebInfo mode.

