Skip to content

fix #23982 - [REG master] -g crashes link.exe on Windows because of empty S_ENVBLOCK - #23988

Merged
thewilsonator merged 1 commit into
dlang:masterfrom
rainers:issue23982
Oct 7, 2026
Merged

thewilsonator merged 1 commit into
dlang:masterfrom
rainers:issue23982

Conversation

@rainers

@rainers rainers commented Oct 7, 2026

Copy link
Copy Markdown
Member

remove S_ENVBLOCK record as it is also not produced by msvc or clang. It is created by the linker only.

The record is corrupt because it is interpreted as list of strings terminated by an empty string. This is later grouped into key-value pairs, but that does not allow specifying an empty value string.

The same information is provided by the S_BUILDINFO record, that is also produced by clang (see https://codebrowser.dev/llvm/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp.html#715), but not msvc.

… of empty S_ENVBLOCK

remove record as it is also not produced by msvc or clang. It is created by the linker only.
@thewilsonator
thewilsonator merged commit 6f1f275 into dlang:master Oct 7, 2026
40 of 42 checks passed
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