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

Fix windows-th-dll build failures #2091

Merged
merged 6 commits into from
Oct 16, 2023
Merged

Conversation

angerman
Copy link
Collaborator

@angerman angerman commented Oct 15, 2023

ghc/ghc@48e3919, backported to 9.6 in ghc/ghc@8187344
introduced SYM_TYPE_DUP_DISCARD to the bitfield.

The linker however, failed to mask the SYM_TYPE_DUP_DISCARD value. Thus == SYM_TYPE_CODE comparisons easily failed. This lead to us relocating DATA lookups (GOT) into E8 (call) and E9 (jump) instructions.

48e391952c17ff7eab10b0b1456e3f2a2af28a9b, backported to 9.6
in 81873448d1c946d56f429da9d7e53ecaa55bdc71
introduced `SYM_TYPE_DUP_DISCARD` to the bitfield.

The linker however, failed to mask the `SYM_TYPE_DUP_DISCARD` value.
Thus `== SYM_TYPE_CODE` comparisons easily failed. This lead to us
relocating DATA lookups (GOT) into E8 (call) and E9 (jump) instructions.
@angerman angerman requested a review from hamishmack October 15, 2023 04:22
@angerman angerman self-assigned this Oct 15, 2023
@angerman angerman merged commit 4589f9d into master Oct 16, 2023
30 checks passed
@angerman angerman deleted the angerman/fix-windows-th-dll branch October 16, 2023 00:10
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.

2 participants