They're really just arbitrary byte sequences of arbitrary length.
Sure, a 20-byte sequence is _probably_ a SHA-1, but there's no way
to know, so let's stop pretending...
if (n_namesz==4 && !memcmp(note+12, "GNU", 4)) {
if (n_type == 3 /*NT_GNU_BUILD_ID*/) {
- printf(", BuildID[%s]=", (n_descsz==20)?"sha1":"md5");
+ printf(", BuildID=");
for (j = 0; j < n_descsz; ++j) printf("%02x", note[16 + j]);
}
} else if (n_namesz==8 && !memcmp(note+12, "Android", 8)) {