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 port hash for ASLR and high-entropy-va for MinGW-w64 (64-bit) #748

Merged
merged 1 commit into from
Feb 20, 2021

Conversation

Hamayama
Copy link
Contributor

MSYS2/MinGW-w64 (64-bit) 環境で、正常にビルドできない件、
エラー箇所が分かったため修正しました。

原因は、最近、MSYS2/MinGW-w64 (64-bit) 環境の更新で、
リンカ (ld) の ASLR および high-entropy-va オプションが、
デフォルトで ON になったのですが、
それによってアドレスの値が大きくなり、
剰余の計算時に結果が負になっていました。
(src/port.c)

また、ext/native については、Windows で test が異常終了していたため、
とりあえずスキップしました。
(cond-expand を修正)

<テスト結果>
https://github.com/Hamayama/Gauche/actions/runs/583749482

<関連プルリクエスト>
#745

@shirok
Copy link
Owner

shirok commented Feb 20, 2021

おお、ありがとうございます。これは予想してなかった。
64bit Windowsでlongが32bitなのは落とし穴ですねえ。何度も落ちてる。

@shirok shirok merged commit c2d0afa into shirok:master Feb 20, 2021
@Hamayama Hamayama deleted the win64-aslr2 branch February 21, 2021 12:16
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