-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For binary built for esp32 target xtensa-esp32-elf-objdump produces incorrect disassembly, while xtensa-esp32s3-elf-objdump is correct (GCC-247) #26
Comments
@michael-sayapin could you please attach the ELF file which has this issue? |
Let me check with the team, as it is a commercial product and I'm not sure I can open the ELF file. I will try to reproduce with a minimal example. |
Another option for you to consider is sending it to me (ivan at espressif). |
Thank you for sharing the ELF file @michael-sayapin. Upon a brief look, it seems that there are two issues here:
|
Finally had a moment to try the patch. Turns out, the builder we use is based on IDF 4.2, so I had to modify the patch quite a bit to apply. In the end it applied fully. However, the disassembly result is the same, and seems like it made it a bit worse. PS: Both non-patched and patched versions contain correct calls if disassembled with |
Environment
git describe --tags
to find it): v4.4.1xtensa-esp32-elf-gcc --version
to find it): xtensa-esp32-elf-gcc (crosstool-NG esp-2021r1) 8.4.0Problem Description
I'm building the .elf file with idf.py and following sdkconfig:
Here is the real code of one of the tasks:
Expected Behavior
xtensa-esp32s3-elf-objdump -d
produces correct disassembly:Actual Behavior
xtensa-esp32-elf-objdump -d
produces this disassembly:Notice that the call to xxx_do_something is missing.
The text was updated successfully, but these errors were encountered: