Skip to content
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

Closed
wants to merge 2 commits into from
Closed

PE section flags #23520

wants to merge 2 commits into from

Conversation

sha0coder
Copy link
Contributor

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.

@@ -303,6 +303,7 @@ typedef struct r_bin_section_t {
ut64 vaddr;
ut64 paddr;
ut32 perm;
ut32 flags;
Copy link
Collaborator

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

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

@trufae trufae left a 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

@trufae
Copy link
Collaborator

trufae commented Nov 21, 2024

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);
Copy link
Collaborator

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

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");
Copy link
Collaborator

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

Copy link
Collaborator

@trufae trufae left a 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

@trufae
Copy link
Collaborator

trufae commented Nov 27, 2024

fixed in #23699

@trufae trufae closed this Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants