-->
Page 1 of 2

Converting ESP8266 bin to elf file

PostPosted: Thu May 21, 2020 10:46 am
by GerryTitan
Hi,

Does anyone know of a good way to convert from the EPS8266's binary to an elf file? I know that the ESP8266's toolchain includes tools like xtensa-lx106-elf-objcopy, and it seems like this may be able to do the conversion, but I'm not sure. I have also tried tools like esp-bin2elf which seem promising, but only appear to decompile the BootROM. So my question is, does anyone have experience decompiling an entire flash dump of the ESP8266? I am quite new to all this.

Thanks.

Re: Converting ESP8266 bin to elf file

PostPosted: Fri May 22, 2020 1:26 am
by schufti
decompiling and "binary to .elf" does not go together, an .elf file is still a binary executable.
https://en.wikipedia.org/wiki/Executabl ... ble_Format

Re: Converting ESP8266 bin to elf file

PostPosted: Fri May 22, 2020 12:01 pm
by GerryTitan
By "binary", I mean just mean a flash dump of the ESP8266. I want to recover the ELF file from this flash dump.

Re: Converting ESP8266 bin to elf file

PostPosted: Sun May 31, 2020 7:07 am
by eriksl
And what would the next step? Conversion to ELF will not magically recover the lost symbols ;)