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.
Assembly tests should have a '.s' extension. Also, since this is using X86_64 assembly, it needs a REQUIRES: x86. Finally, please rebase this change (there have been significant changes to the test directory structure recently).