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

[Runtime][ELF] Mark metadata sections as retained. #71841

Closed
wants to merge 1 commit into from

Conversation

al45tair
Copy link
Contributor

If section garbage collection is turned on in the linker, the metadata sections may be dropped as there are no external references to them.

To fix this, we need to mark them as retained (add an 'R' to the declaration).

rdar://123504095

If section garbage collection is turned on in the linker, the
metadata sections may be dropped as there are no external references
to them.

To fix this, we need to mark them as retained (add an 'R' to the
declaration).

rdar://123504095
@al45tair al45tair requested a review from mikeash as a code owner February 23, 2024 16:14
@al45tair
Copy link
Contributor Author

@swift-ci Please smoke test

@finagolfin
Copy link
Member

This has been tried before, #67476, didn't work then either. @keith and @kateinoigakukun, any input?

@keith
Copy link
Member

keith commented Feb 23, 2024

this is my current impression of the issue #67476 (comment)

@al45tair
Copy link
Contributor Author

See also #71373

@al45tair
Copy link
Contributor Author

al45tair commented Mar 4, 2024

Closing this as I have a more complete PR coming.

@al45tair al45tair closed this Mar 4, 2024
@al45tair
Copy link
Contributor Author

al45tair commented Mar 4, 2024

New PR is #72061.

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.

4 participants