[PATCH 1/2] ld: Add --pdb option

Martin Storsjö martin@martin.st
Mon Oct 10 20:58:37 GMT 2022


On Mon, 10 Oct 2022, Mark Harmstone wrote:

> Sorry Martin, I didn't quite get what you meant before. Yes, that's 
> fine; I'll resubmit with your changes.

Ok, great!

So after this, both lld and binutils would support these usage forms:

Preferred ones:
     -Wl,--pdb=<filename>
     -Wl,--pdb=     (implying the PDB filename from the output name)

Also supported (and used across third party code) but less ideal:
     -Wl,--pdb,<filename>

We could try to discourage (soft-deprecate?) the latter form and try to 
change most accessible third party projects to use the former form which 
is less ambiguous.

If we get most projects switched to using the preferred forms, and enough 
time passes (say a year or two?) we could maybe consider to remove support 
for the other form, leaving the door open for taking that into use as 
"-Wl,--pdb" as a less awkward form for the implicit output name, at some 
point in the future.

// Martin



More information about the Binutils mailing list