PATCH: add new test tool: obj2yaml

This patch adds a tool called 'obj2yaml', which takes an object file, and produces a YAML representation of the file.
This is a companion tool to Michael Spencer's proposed "yaml2obj" tool.

This tool processes only COFF files; the plan is to enhance it to handle other object formats, as well as object archives.
The primary uses for this tool is expected to be:
  1) Debugging object files that are produced by llvm and lld.
  2) Automated testing suites.

The goal is to have obj2yaml and yaml2obj be inverse operations, so that one can test either by using the other.
So, both obj -> yaml -> obj and yaml -> obj -> yaml are expected to be idempotent.

-- Marshall

Marshall Clow Idio Software <>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki

obj2yaml.patch (20.3 KB)