Search code examples
linuxgdbvalgrindstrip

How to undo strip - i.e. add symbols back to stripped binary


I have a stripped binary and symbol-file. Is it possible to add the symbols back to binary and create an unstripped binary.

My use-case is using this binary w/ valgrind.


Solution

  • Valgrind supports separate debug files, so you should use the answer here, and valgrind should work properly with the externalized debug file.