Skip to content

Windows runtime initializer #14378

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 3 commits into from
Feb 3, 2018

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Feb 2, 2018

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

On windows, we create synthetic markers with grouping identifiers to
ensure that the markers are sorted properly and merged.  We would
previously mark the section as read/write rather than read-only causing
warnings when linking.  Correct the attributes.  This ensures the proper
linking of the modules.
The Windows constructor was not populated properly, with the protocol
list being dropped.  Ensure that all the fields are initialised
properly.  Thanks to clang's `-Wmissing-field-initializers` warning to
help catch this.
The default attribute on the section is read/write.  This would cause
the section to have different attributes when compiled.  The linker
would then preserve the section rather than merge it into the right
location.  This was noticed when linking with `link.exe`.
@compnerd
Copy link
Member Author

compnerd commented Feb 2, 2018

CC: @troughton

@compnerd
Copy link
Member Author

compnerd commented Feb 2, 2018

@swift-ci please test and merge

@troughton
Copy link
Contributor

Great, thanks for fixing this.

@swift-ci swift-ci merged commit 5663b44 into swiftlang:master Feb 3, 2018
@compnerd compnerd deleted the windows-runtime-initializer branch September 12, 2018 05:22
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