[PATCH v2] ld: Align the PDB DBI source-info substream
Project / Subsystem
binutils / ld
Date
2026-09-18
Proposer
Oleg Tolmatcev <oleg.tolmatcev@gmail.com>
Source type
public_inbox
Consensus
Proposed
Sentiment
7/10
Technical tradeoffs
- • Ensures PDB compatibility and determinism by adhering to alignment requirements.
- • Introduces minor overhead for alignment calculation and zeroing padding.
All attributes
- project
- binutils
- subsystem
- ld
- patch_id
- —
- discussion_id
- 20260918093607.779-2-oleg.tolmatcev@gmail.com
- source_type
- public_inbox
- title
- [PATCH v2] ld: Align the PDB DBI source-info substream
- headline
- ld: Align the PDB DBI source-info substream
- tldr
- Ensure PDB DBI source-info substream size is a multiple of 4 bytes, zero-padding any excess.
- proposer
- Oleg Tolmatcev <oleg.tolmatcev@gmail.com>
- consensus
- Proposed
- outcome
- needs_revision
- sentiment_score
- 7
- technical_tradeoffs
-
- • Ensures PDB compatibility and determinism by adhering to alignment requirements.
- • Introduces minor overhead for alignment calculation and zeroing padding.
- series_id
- —
- series_role
- standalone
- series_parts
- []
- tags
-
- • linker
- • PDB
- • debug info
- • alignment
- bugzilla_url
- —
- date
- 2026-09-18T00:00:00.000Z
[PATCH v2] ld: Align the PDB DBI source-info substream
This patch modifies the linker (ld) to align the size of the PDB DBI source-info substream to a four-byte boundary, zeroing out any padding. This change ensures compliance with the PDB format’s requirement for four-byte alignment and determinism in padding bytes. A test case is extended to verify this behavior.