binutils Newspaper
OCTOBER 6, 2026
ld — Committed

ld: Align PDB DBI source-info substream and zero padding

A patch aligning the PDB DBI source-info substream size to a multiple of 4 and zeroing padding has been committed.

This discussion confirms the commitment of a patch that aligns the PDB DBI source-info substream size to a multiple of four bytes and ensures any padding bytes are zeroed. This change adheres to specifications from the Microsoft pdb-rs project. The author thanks Jan Beulich for committing the patch and subsequently requests the closure of a related Bugzilla issue (PR ld/34605).

In the Thread 2 participants
  1. Jan Beulich <jbeulich@suse.com> reviewer

    Acknowledges and approves the patch.

    “Okay.”
  2. Oleg Tolmatcev <oleg.tolmatcev@gmail.com> proposer

    Confirms patch commitment and requests closure of a related bug report.

    “Thanks for committing the patch. I just found this PR https://sourceware.org/bugzilla/show_bug.cgi?id=34605. Can you close it? Thanks.”

Technical Tradeoffs

  • Ensures adherence to PDB format specifications.
  • Minor increase in substream size due to padding, if necessary.

In Details

This is a brief follow-up confirming the commitment of a patch to the ld component that aligns the PDB DBI source-info substream size to a multiple of 4 bytes and zeroes padding, as per the pdb-rs documentation. The discussion also includes a request to close a related Bugzilla issue.

For Context
PDB
Program Database file format, used by Microsoft for storing debugging and project information. Used in Windows development.
DBI
Debug Buffer Interface, a component within PDB files that stores debugging information.
source-info substream
A specific part of the DBI stream within a PDB file that contains information about the source code files used to build the program.
alignment padding
Extra bytes added to data to ensure it starts at a memory address that is a multiple of a specific number (e.g., 4 bytes), which can improve performance on some architectures.
ld
The GNU linker, responsible for combining object files into an executable or library.
Filed Under: linkerpdbdebuggingwindows