-
Notifications
You must be signed in to change notification settings - Fork 513
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
Cortex M33 elf binary error: no decoding mapping for 46 [tag] #484
Comments
Tag 0x46 is |
@KShingala if #487 did not fix your issue, please provide a simple, minimal self-contained reproducer which includes the Python code using pyelftools and the sample binary. |
Here are the file I used to experience the error. |
Reproduced. This is not about a DWARF tag 0x46, like I thought, the error is taking place while parsing the Now I need to find an authoritative reference on those, figure out what does 46 stand for, and how does one parse the rest of the attribute record... EDIT: this seems to be it: https://github.com/ARM-software/abi-aa/blob/main/addenda32/addenda32.rst#introduction-to-build-attributes In case someone else is interested in debugging, here is a repro example that is not encumbered with a ton of dependencies (mind the data file path though):
Even if my first hunch was wrong, filling a gap in the DWARF tag enum was a Good Thing. :) @KShingala: may we add the attached binary to the repository and use it in the autotest? |
I dont mind using the binary as an autotest, please feel free to use it as you like. |
Either way, the fix seems to be a new enum value - but in a different enum. See the changeset in #491, and see if you can apply that. |
I am trying to use angr to generate control flow graph for CM33 binary but get this error from elftool from backend_z3.py.
I am using the following in my script to
arch = archinfo.ArchARM(archinfo.Endness.LE) p = angr.Project('my_binary.elf', arch=arch)
Can someone help me what I am doing wrong?
The text was updated successfully, but these errors were encountered: