[PATCH] D83014: [PDB] read/dump fixups from PDB dbi stream
Jack Andersen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 1 17:50:46 PDT 2020
jackoalan created this revision.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
Binaries linked with `/DEBUGTYPE:CV,FIXUP` have a fixup substream present in the generated PDB's dbi.
This is essentially the equivalent of GCC's `--emit-relocs`. The fixup stream contains a list of all static
relocations performed by the linker. Each fixup entry uses the `XFIXUP_DATA` structure found in the cvdump
reference implementation.
Changes to llvm-pdbutil's dump tool can dump this information with `-fixups` or `-all`. The `DbiStream` public
API provides access to this stream array for tools that may be interested in cross-referencing symbols with
their usages.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D83014
Files:
llvm/docs/PDB/DbiStream.rst
llvm/include/llvm/DebugInfo/PDB/Native/DbiStream.h
llvm/include/llvm/DebugInfo/PDB/Native/RawTypes.h
llvm/include/llvm/Object/COFF.h
llvm/lib/DebugInfo/PDB/Native/DbiStream.cpp
llvm/lib/Object/COFFObjectFile.cpp
llvm/test/tools/llvm-pdbutil/Inputs/FixupsTest.cpp
llvm/test/tools/llvm-pdbutil/Inputs/FixupsTest.pdb
llvm/test/tools/llvm-pdbutil/fixups.test
llvm/test/tools/llvm-pdbutil/stripped.test
llvm/test/tools/llvm-pdbutil/type-server-no-dbi.test
llvm/tools/llvm-pdbutil/DumpOutputStyle.cpp
llvm/tools/llvm-pdbutil/DumpOutputStyle.h
llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp
llvm/tools/llvm-pdbutil/llvm-pdbutil.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83014.274972.patch
Type: text/x-patch
Size: 12645 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200702/5782bcee/attachment.bin>
More information about the llvm-commits
mailing list