Fix port hash for ASLR and high-entropy-va for MinGW-w64 (64-bit) #748
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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