[PATCH] Add support for COFF secidx relocations

Nick Clifton nickc@redhat.com
Thu Apr 7 13:49:50 GMT 2022


Hi Mark,

> Apologies in advance if I've done anything wrong here, this is my first
> substantive patch to binutils.

Well I am impressed - the patch worked flawlessly and the only thing I had
to change was a couple of very minor code formatting issues.

> I've been working on adding support for Microsoft's PDB debugging format
> to gcc and binutils, and this turned out to be a blocker. This adds
> support for the secidx relocation type in COFF files, which is a two-byte
> index for the section in which a symbol ends up. It also adds support for
> the .secidx pseudo-directive to generate this (the syntax of which is
> cribbed from llvm-mc, which supports this already).

Patch approved and applied.

Cheers
   Nick



More information about the Binutils mailing list