Skip to content

[mach] Make section_by_name support loading sections starting with dot #109

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

Merged
merged 1 commit into from
May 31, 2019
Merged

Conversation

bjorn3
Copy link
Contributor

@bjorn3 bjorn3 commented May 31, 2019

For example .rustc used to be replaced with __rustc before searching, which meant .rustc was not findable

cc https://github.com/bjorn3/rustc_codegen_cranelift/pull/435

For example `.rustc` used to be replaced with `__rustc` before searching, which meant `.rustc` was not findable
@philipc
Copy link
Contributor

philipc commented May 31, 2019

I think this is good (and I'd actually prefer if we got rid of this hack completely, but that's liable to break things). But maybe you should be naming the section __rustc in the first place for Mach-O? Not sure what the llvm backend does.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 0.0% when pulling f2012af on bjorn3:patch-1 into 10be0ee on gimli-rs:master.

@bjorn3
Copy link
Contributor Author

bjorn3 commented May 31, 2019

The llvm backend uses .rustc for all platforms.

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!

@philipc philipc merged commit 6a73100 into gimli-rs:master May 31, 2019
@bjorn3 bjorn3 deleted the patch-1 branch May 31, 2019 10:54
mcbegamerxx954 pushed a commit to mcbegamerxx954/object that referenced this pull request Jun 15, 2024
[mach] Make section_by_name support loading sections starting with dot
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.

3 participants