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

Revert PR #93718 (use of #[used(linker)]) due to breakage on multiple platforms. #99674

Closed
wants to merge 1 commit into from

Conversation

thomcc
Copy link
Member

@thomcc thomcc commented Jul 24, 2022

Fixes #99596, see it for background.

I'm not sure why that issue happens (especially given that it shouldn't change anything on ELF platforms), but don't have time to investigate deeply. The breakage sounds very bad, so this commits reverts the changes in the meantime.

…on multiple platforms.

This reverts commit ceeb5ad, reversing
changes made to 039a6ad.
@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jul 24, 2022
@rust-highfive
Copy link
Collaborator

r? @michaelwoerister

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 24, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 25, 2022
Don't overwrite CodegenFnAttrs when adding used compiler/linker

Pointed out by `@tmiasko` in rust-lang#93718 (comment). Probably a better fix than rust-lang#99674 for rust-lang#99596, assuming it does fix the latter.

I don't have the ability to write a regression test for this at the moment, and am quite surprised this didn't cause other failures. The old code is clearly wrong though, but I'm not picky as to which of these is better to go with.
@wesleywiser
Copy link
Member

We may want to see if #99676 fixes the reported issues before merging this revert.

@bors
Copy link
Contributor

bors commented Jul 25, 2022

☔ The latest upstream changes (presumably #99676) made this pull request unmergeable. Please resolve the merge conflicts.

@thomcc
Copy link
Member Author

thomcc commented Jul 26, 2022

It seems like the other PR has fixed the issues. I'm going to close it for now, but can reopen/rebase it if it turns out to be needed.

@thomcc thomcc closed this Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Static variables are not exported on multiple platforms.
6 participants