← Back to Pull requests

[RuntimeDyld] [COFF] Load zero-sized sections #242218

Closed
unknown closed this pull request without merging on Nov 24, 2026 23:37 UTC
View on GitHub
unknown unknown commented on Nov 13, 2026 09:17 UTC
Author

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.

Diff: 134 lines (+100 / -34) across 1 files Reviewer: mstorsjo Review duration: 16700m
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
0.32
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 32.3% (LOW) · Higher = larger blast radius
32.3%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 12.8% · Safe to merge
12.8%