Page 1 of 1

Release Build and Debug Symbols

Posted: Thu Apr 06, 2017 6:27 pm
by kostyan5
Why does Release build elf still contain .debug_* symbols?

Re: Release Build and Debug Symbols

Posted: Fri Apr 07, 2017 12:58 am
by ESP_igrr
Debug symbols in the elf file do not affect the size or the speed of an application once it had been uploaded. So there is no downside in keeping the debug symbols. They do allow for readable stack traces, if anything.

If you need the elf file to be stripped, you can easily do this in project makefile.

Re: Release Build and Debug Symbols

Posted: Fri Apr 07, 2017 1:01 am
by kostyan5
I don't particularly care about elf file. I was just curious. What's the parameter to strip debug symbols from elf?

Re: Release Build and Debug Symbols

Posted: Fri Apr 07, 2017 2:34 am
by ESP_igrr
xtensa-esp32-elf-strip <elf file name>