This is an archive of the discontinued LLVM Phabricator instance.

[coff] Add command line flags /PDBAGE and /PDBGUID
Changes PlannedPublic

Authored by zturner on Mar 2 2018, 3:11 PM.

Details

Reviewers
ruiu
Summary

MSVC doesn't implement these, but these should be generally useful options for people trying to support reproducible builds.

The need for these arose when I was trying to write a test for the reproducibility of the hash (D43978), because it hashes the guid and that is currently non-deterministic. So in order to write a deterministic test I need a way to specify the GUID. That said, I think people can find a use for this outside of tests as well.

Diff Detail

Event Timeline

zturner created this revision.Mar 2 2018, 3:11 PM
zturner planned changes to this revision.Mar 5 2018, 10:58 AM

It was suggested offline that I implement something in llvm-pdbutil that can update a GUID / age of an arbitrary PE / PDB after the fact, and remove this from the linker. So I will do that instead.