[COFF] Fix relocation offsets in pdb-file-statics test input
authorReid Kleckner <rnk@google.com>
Wed, 20 Jan 2021 19:16:01 +0000 (11:16 -0800)
committerReid Kleckner <rnk@google.com>
Wed, 20 Jan 2021 19:45:30 +0000 (11:45 -0800)
commit9e708ac6b9929e9baa2017ff62f2353e6621a105
tree0397022bed16fd51391fd255409e1156dfaa7c27
parentea616f9026dc6bd9c67ebe2d3226ac91122a7945
[COFF] Fix relocation offsets in pdb-file-statics test input

The relocation offsets were incorrect. I fixed them with llvm-readobj
-codeview -codeview-subsection-bytes, which has a helpful printout of
the relocations that apply to a given symbol record with their offsets.
With this, I was able to update the relocation offsets in the yaml to
fix the line table and the S_DEFRANGE_REGISTER records.

There is still some remaining inconsistency in yaml2obj and obj2yaml
when round tripping MSVC objects, but that isn't a blocker for relanding
D94267.
lld/test/COFF/Inputs/pdb-file-statics-a.yaml