Page 1 of 1

Large ELF file when building example. Expected?

Posted: Fri Dec 08, 2023 11:53 pm
by gamename
Hi,

I'm trying to build and flash the http_request example (https://github.com/espressif/esp-idf/tr ... tp_request)

Everything builds correctly as far as I can tell, but the ELF file is >8MB. That seems really large. In fact its too large to load onto my esp32.

Is that the expected result, or am I doing something wrong?

TIA,
-T

Re: Large ELF file when building example. Expected?

Posted: Sat Dec 09, 2023 4:24 am
by ESP_Sprite
The ELF file contains all the results from the compilation process - not only the code but also debug symbols, filenames and lots of other stuff that is not needed for execution. You want to look at the generated .bin file - that is what actually gets flashed to the ESP.

Re: Large ELF file when building example. Expected?

Posted: Sat Dec 09, 2023 10:21 am
by gamename
Doh! Thanks. :)