Feature request: improved build-id generation
Thu Mar 15 07:53:00 GMT 2018
> I suggest that /bin/ld accept any number of command-line parameters like:
> where n_namesz, n_descsz, and n_type are numbers, and "name" is a string
> that ld zero-pads to length round_up(n_namesz, 4). /bin/ld appends to
> the PT_NOTE segment, using round_up(n_descsz, 4) bytes of zero as the value.
> Then a post-processor can find that Note, and change it to a different
> n_type,"name",value as desired.
I think they're trying to get rid of the need for post-processing.
If we go down the add-a-note path, I'd just go with a pre-defined note
section, like the linker footprint that gold already produces, and add
an option to add an arbitrary string to that note.
More information about the Binutils