-
-
Notifications
You must be signed in to change notification settings - Fork 361
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
Use relocation types name defined by each bin format. #4695
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very much like these changes!
Please address the comments though and don't delete half of the PR description template. It is ok to fill out All tests green
in the testing paragraph. If this is actually sufficient to test the changes (as it does here).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks so much better. wonderful job.
d89eb12
to
a9853a5
Compare
* Modified `bin_reloc_type_name` to return correct naming if possible, otherwise return the old ADD/SET naming. * Add `print_name` field to `RzBinReloc`
* Fixed the relocation names in the regression tests
@Rot127 done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: Rot127 <45763064+Rot127@users.noreply.github.com>
@XVilka muon seems broken? |
No, just a small name change: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Your checklist for this pull request
Detailed description
bin_reloc_type_name
to return correct naming if possible, otherwise return the oldADD
/SET
naming.RzBinReloc
Every relocation is being assigned a type based off whether it needs an addend added to it or not (
SET
for no addend,ADD
for with). This is whatRzBinReloc.additive
was for.RzBinReloc.type
has just been the bit size of the relocationAnd the final name of the relocation printed was just a combination of the both (which is wrong)
In order to not break all the other relocation types, I haven't removed the old code completely yet. When all the other executable formats support the new printing I'll remove it completely.
...
Test plan
All tests green
...
Closing issues
...