-
Notifications
You must be signed in to change notification settings - Fork 190
feat: expose reserved fields in mach-o sections #515
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
base: master
Are you sure you want to change the base?
Conversation
m4b
left a comment
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.
Need to understand why you want this, and probably remove the Clone annotations, I don't see why that's relevant for this
| } | ||
|
|
||
| /// An export trie efficiently encodes all of the symbols exported by this binary for dynamic linking | ||
| #[derive(Clone)] |
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.
making this Copy, Clone makes more sense to me; i'm curious why you needed to clone this though?
| /// An interpreter for mach BIND opcodes. | ||
| /// Runs on prebound (non lazy) symbols (usually dylib extern consts and extern variables), | ||
| /// and lazy symbols (usually dylib functions) | ||
| #[derive(Clone)] |
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.
ditto why do you need this clone?
| } | ||
|
|
||
| /// A cross-platform, zero-copy, endian-aware, 32/64 bit Mach-o binary parser | ||
| #[derive(Clone)] |
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.
why is this clone? We've avoided these for compile time reasons at this point, and it's never been required in the past, why do you need this? Also adding all these clone annotations has ostensibly nothing to do with your PR title btw
| /// reserved (for offset or index) | ||
| pub reserved1: u32, | ||
| /// reserved (for count or sizeof) | ||
| pub reserved2: u32, |
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.
why exactly do you want to see these fields btw? did some real world usecase require it, or? can you elaborate a bit
Exposes Mach-O
Section32andSection64reserved1andreserved2fields to theSectionstruct