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

Remove no_dead_strip marks #670

Merged
merged 2 commits into from
Nov 16, 2024

Conversation

Berrysoft
Copy link
Contributor

Closes #667

I think there won't be a person to explain why objc ABI 2 uses no_dead_strip in a short time. Maybe it is better to remove it first. If there were more problems, we would know why it is necessary:)

Copy link
Owner

@madsmtm madsmtm left a comment

Choose a reason for hiding this comment

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

I honestly still feel like I understand this too little. For example, why do the regular part get stripped from the final binary?

Also not too sure about removing them from the image info / module info, from what I understand image info is kinda important for letting the (dynamic? can't remember which one, if not both) linker know that it should translate Objective-C sections.

@Berrysoft
Copy link
Contributor Author

OK, you're right. I choose to remove no_dead_strip for class refs and sels only.

Copy link
Owner

@madsmtm madsmtm left a comment

Choose a reason for hiding this comment

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

Still not happy that I don't know what's going on, but I guess it's fine (with nit rebased in)

crates/objc2/src/macros/mod.rs Outdated Show resolved Hide resolved
@madsmtm madsmtm merged commit abfbcd9 into madsmtm:master Nov 16, 2024
20 checks passed
@madsmtm
Copy link
Owner

madsmtm commented Nov 16, 2024

Thanks!

@Berrysoft Berrysoft deleted the fix/remove-no-dead-strip branch November 16, 2024 16:40
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.

Dead links when unstable-static-class enabled
2 participants