4 Commits

Author SHA1 Message Date
Chris B
be0135538a
[DirectX][objdump] Add support for printing signatures (#153320)
This adds support for printing the signature sections as part of the
`-p` flag for printing private headers.

The formatting aims to roughly match the formatting used by DXC's
`/dumpbin` flag.

The original version's printed output left some trailing whitespace on
lines, which caused the tests to fail with the strict whitespace
matching.

Re-lands #152531.
Resolves #152380.
2025-08-15 18:10:49 -05:00
Chris B
6e59d1da08
Revert "[DirectX][objdump] Add support for printing signatures" (#153313)
Reverts llvm/llvm-project#152531
2025-08-12 17:33:56 -05:00
Chris B
9526d3b0b9
[DirectX][objdump] Add support for printing signatures (#152531)
This adds support for printing the signature sections as part of the
`-p` flag for printing private headers.

The formatting aims to roughly match the formatting used by DXC's
`/dumpbin` flag.

Resolves #152380.
2025-08-12 17:00:14 -05:00
Chris B
2fe96439fb
[DirectX] Add ObjectFile boilerplate for objdump (#151434)
This change adds boilerplate code to implement the object::ObjectFile
interface for the DXContainer object file and an empty implementation of
the objdump Dumper object.

Adding an ObjectFile implementation for DXContainer is a bit odd because
the DXContainer format doesn't have a symbol table, so there isn't a
reasonable implementation for the SymbolicFile interfaces. That said, it
does have sections, and it will be useful for objdump to be able to
inspect some of the structured data stored in some of the special named
sections.

At this point in the implementation it can't do much other than dump the
part names, offsets, and sizes. Dumping detailed structured section
contents to be extended in subsequent PRs.

Fixes #151433
2025-08-04 10:57:25 -05:00