-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add a bfdname for msp430 to make asm and disasm work #1606
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
Conversation
Thanks for the contribution! Looks like good stuff we missed for a long time. Can you add an entry to the CHANGELOG.md for this? Fixing this on |
d09df20
to
1a3cf71
Compare
I added an entry to the changelog. Do you have any idea about the |
It could probably be solved by querying "elf%d-s390" % context.bits would do the job. I personally don't know s390 and never encountered it, but if it supports two widths, this may be the best option. |
Looks good! Can you add a doctest so that we can exercise this code during our tests and make sure things don't break? Just an |
7a1bf0b
to
71aaa53
Compare
Ok! Just add it to the docs like this? BTW, I added the bfdname for |
It looks like there are a few conflicts to resolve before merging this. Probably changelog stuff. Resolve and I can merge it! |
71aaa53
to
335b752
Compare
CI failure looks unrelated to the change - it failed to install Android AVD. |
Is there anything else that still needs to be done here? |
Would you mind updating the CHANGELOG.md to the new version this is being added for? We did a new release today. |
Actually looks like this will need to be rebased or amended to use CI that's not broken |
335b752
to
fff0690
Compare
Inspired by Gallopsled#1606 Fixes Gallopsled#1622
Rebased on top of |
Was the merge supposed to go this way? |
Not sure whether you consider this a bugfix, or new functionality...
Currently, out of the architectures that pwntools supports,
msp430
ands390
error out with a missing bfd name. This PR resolves it for the former, but I couldn't determine what bfdname should be used for the latter - I have found two options:elf32-s390
andelf64-s390
.This is confusing, as all the other architectures use a separate name for their 64-bit variant. It seems that the 64-bit s390 is called the s390x, does this mean that pwntools only supports the 32-bit variant?