Parse PT_NOTE segment.

The PT_NOTE segment includes a list of notes with a header, name and
description. GNU ld includes in this segment the GNU build-id and GNU
ABI version information.
Could you encapsulate this into a utility function please? It's used in more than one place