[RuntimeDyld] [COFF] Load zero-sized sections #242218
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.32) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.32 · 134 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.293
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #242218"
general
weight: 0.35
mstorsjo
Symbols can be defined in zero-sized sections, e.g. a zero-sized object (such as an empty struct in C, in mingw mode) in .bss. Previously, such sections weren't loaded, and their load address was zero, making symbols in them resolve to address 0.
On AArch64, since f330666ac78564db6651c81cd1d4658ff27758a8, this triggers an error about an out of range ADRP relocation (previously the relocation was silently truncated), making clang/test/Interpreter/pretty-print.c fail on aarch64 mingw.
The failing construct was the empty struct in the test statement "struct S1{} s1; s1".
This test only failed in aarch64 mingw configurations, not in aarch64 msvc configurations (which are covered with buildbots). In MSVC mode, the empty struct is padded to 4 bytes, so the .bss section doesn't end up empty. Also, in the mingw configurations, the testcase only failed on the run lines that execute it as C code. When interpreted as C++, the empty struct has size 1.
Sections are only emitted on demand, and zero-sized sections already get a minimal allocation, so loading them is cheap.