This is an archive of the discontinued LLVM Phabricator instance.

[lld] Write the correct age and machine type to the PDB.
ClosedPublic

Authored by zturner on May 16 2017, 9:41 PM.

Details

Reviewers
ruiu
inglorion
Summary

The age has to be written in two places and the two values have to agree with each other. Prior to this change, when I ran llvm-pdbdump raw -all on a PDB generated with lld it would error out. This patch fixes that. Now when I link two trivial object files with LLD and dump the resulting PDB, I get actual data. So far it only prints the section contents, but I'll look into getting symbol and type information in next.

Diff Detail

Event Timeline

zturner created this revision.May 16 2017, 9:41 PM
This revision is now accepted and ready to land.May 17 2017, 4:37 PM
ruiu accepted this revision.May 17 2017, 4:38 PM

LGTM

zturner closed this revision.May 18 2017, 4:17 PM