1

as far as I know, objcopy is able to move debug symbols (compiled with -g flag) outside from an executable binary. I found this question, but there are only generic methods for symbol outsourcing.

But what can I do when my executable is using some really large .so and .a files?

I would like to profile my application in a small environment where is not enough place for the debug symbols. The entire project was built with -g option. The debug symbols are needed later only when the profile log is processed.

Community
  • 1
  • 1
Steve M. Bay
  • 313
  • 1
  • 3
  • 15

1 Answers1

1

You can strip debug symbols:

strip --strip-debug object.so
erenon
  • 18,838
  • 2
  • 61
  • 93