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

Add support for writing a mach-o file with an LC_BUILD_VERSION command #524

Merged
merged 1 commit into from
Mar 27, 2023

Conversation

thomcc
Copy link
Contributor

@thomcc thomcc commented Mar 25, 2023

Needed to fix rust-lang/rust#106021.

Unsure if this API is right, though.

Copy link
Contributor

@philipc philipc left a comment

Choose a reason for hiding this comment

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

Thanks! This looks ok for the API since it's necessarily specific to Mach-O.


impl MachOBuildVersion {
fn cmdsize(&self) -> u32 {
// Same size for both endianness, and we don't have `ntools`.
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think endianness ever changes sizes. Maybe you meant both address sizes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It doesn't, I was just being clear why we didn't need anything passed in from the caller (and just picked an arbitrary Endianess).

@philipc
Copy link
Contributor

philipc commented Mar 26, 2023

It doesn't need to be done for this PR, but would you be able to add some Mach-O test files to https://github.com/gimli-rs/object-testfiles? Ideally both x86_64 and arm64, but whatever you have access to is fine.

@philipc philipc merged commit 58b86b0 into gimli-rs:master Mar 27, 2023
@imWildCat
Copy link

Hello folks, do we need to release a new version for this project?

@philipc
Copy link
Contributor

philipc commented Apr 11, 2023

Yes, I'm planning to do a new release soon.

@philipc
Copy link
Contributor

philipc commented Apr 15, 2023

Released 0.31.0

mcbegamerxx954 pushed a commit to mcbegamerxx954/object that referenced this pull request Jun 15, 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.

Mac Catalyst (macabi) target objects fail to link
3 participants