-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
PE section flags #23520
PE section flags #23520
Conversation
libr/include/r_bin.h
Outdated
@@ -303,6 +303,7 @@ typedef struct r_bin_section_t { | |||
ut64 vaddr; | |||
ut64 paddr; | |||
ut32 perm; | |||
ut32 flags; |
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.
This change breaks the ABI so we can't merge this until the 5.9.8 release is out. we can have R2_USE_NEW_ABI ifdef if you want.. but personall i would wait because it shuoldnt be taking long and we can probably introduce this new field to work with other fileformats
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.
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.
maybe good to keep original output in tests
can you rebase this pr and finish it? we are in the abi breaking season now :) |
(ut64)section->paddr, (ut64)section->size, | ||
(ut64)addr, (ut64)section->vsize, | ||
perms, stype, section_name); | ||
perms, stype, section_name, section->flags); |
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.
i think this should be after before perms not after the name
fbe0758
to
d36cd2d
Compare
r_table_set_columnsf (table, "dXxXxssss", | ||
"nth", "paddr", "size", "vaddr", "vsize", "perm", hashtypes, "type", "name"); | ||
r_table_set_columnsf (table, "dXxXxssssx", | ||
"nth", "paddr", "size", "vaddr", "vsize", "perm", hashtypes, "type", "name", "flags"); |
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.
Put flags before or after perm. But not after name
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.
Then run r2r -i .. with the testfile that fails to fix them
fixed in #23699 |
Ideally the section->perm item is not necesary because can be infered from section->flags
both come from PE section Characteristics but perm is transformed in the way, we keep the orignal flags on flags item.