Currently, if the note name is known, but the value isn't we don't print
Script: -- : 'RUN: at line 1'; llvm-go test llvm.org/llvm/bindings/go/llvm
Since this extends llvm-readelf output, can you also send an email to firstname.lastname@example.org and check what output they want for GNU readelf? For llvm-readobj output, we are not bound to GNU decisions. Though, if the GNU output is not bad, aiming for consistency can usually make our implementation simpler.
I assume that you've verified against GNU readelf all the behaviour that you're changing here?
It's unclear to me what this test is testing, so I can't really say whether this change is good. Would you mind adding a comment at the top of the test, either in this patch or a different one, briefly explaining its purpose, please? I imagine you might need to dig into the old commit messages for this file to find out.
Nit: missing trailing full stop.