[PATCH v2] ld: Align the PDB DBI source-info substream

Oleg Tolmatcev oleg.tolmatcev@gmail.com
Sun Sep 27 10:57:47 GMT 2026


пт, 18 сент. 2026 г. в 11:42, Jan Beulich <jbeulich@suse.com>:
>
> On 18.09.2026 11:36, Oleg Tolmatcev wrote:
> > Round the source-info substream size up to four bytes and zero the
> > padding.  Extend the test to exercise this case.
> >
> > docs/pdb/dbi_sources.md in https://github.com/microsoft/pdb-rs says:
> > "Invariant: The size of the DBI Sources Substream (source_info_size) is
> > a multiple of 4." and "Determinism: Alignment padding bytes are set to
> > zero, if present."
> >
> > ld/
> >       * pdb.c (create_source_info_substream): Align the substream size and
> >       zero the padding.
> >       * testsuite/ld-pe/pdb3b.s: Make the source-info substream require
> >       padding.
> >       * testsuite/ld-pe/pdb3-source-info.d: Expect the padding.
>
> Okay.
>
> Jan

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

Oleg


More information about the Binutils mailing list