This revision separates the changes to readobj that enable the watermark note section to be dumped. See D66426.
readobj can also compute the watermark hash. This computed value can then be checked against the value dumped from the proposed .note.llvm.watermark section.
This test's name is note-llvm.test, but the test is specifically about the watermark note?