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

IRGen: adjust protocol conformance references in PE/COFF #14710

Merged
merged 1 commit into from Mar 1, 2018

Conversation

compnerd
Copy link
Collaborator

There is no GOT on PE/COFF. However, the IAT entries serve the same
purpose. Use the synthetic symbol which will be initialized externally
by the loader to compute the address. This allows for cross-module
protocol references on Windows.

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

Resolves SR-NNNN.

@compnerd
Copy link
Collaborator Author

@swift-ci please test

@swift-ci
Copy link
Collaborator

Build failed
Swift Test OS X Platform
Git Sha - f4f3011fe26b2f06c8ee628d9411aba8eac71b71

@swift-ci
Copy link
Collaborator

Build failed
Swift Test Linux Platform
Git Sha - f4f3011fe26b2f06c8ee628d9411aba8eac71b71

Copy link
Member

@jckarter jckarter left a comment

Choose a reason for hiding this comment

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

Looks good!

There is no GOT on PE/COFF.  However, the IAT entries serve the same
purpose.  Use the synthetic symbol which will be initialized externally
by the loader to compute the address.  This allows for cross-module
protocol references on Windows.
@compnerd
Copy link
Collaborator Author

compnerd commented Mar 1, 2018

@swift-ci please test and merge

@swift-ci swift-ci merged commit 72d7dd2 into apple:master Mar 1, 2018
@compnerd compnerd deleted the got-coff branch March 1, 2018 22:35
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.

None yet

3 participants