Release Build and Debug Symbols

kostyan5
Posts: 50
Joined: Mon Mar 06, 2017 3:16 pm

Release Build and Debug Symbols

Postby kostyan5 » Thu Apr 06, 2017 6:27 pm

Why does Release build elf still contain .debug_* symbols?

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: Release Build and Debug Symbols

Postby ESP_igrr » Fri Apr 07, 2017 12:58 am

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.

kostyan5
Posts: 50
Joined: Mon Mar 06, 2017 3:16 pm

Re: Release Build and Debug Symbols

Postby kostyan5 » Fri Apr 07, 2017 1:01 am

I don't particularly care about elf file. I was just curious. What's the parameter to strip debug symbols from elf?

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: Release Build and Debug Symbols

Postby ESP_igrr » Fri Apr 07, 2017 2:34 am

xtensa-esp32-elf-strip <elf file name>

Who is online

Users browsing this forum: Baidu [Spider], Basalt and 349 guests