This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Feature request: improved build-id generation


> I suggest that /bin/ld accept any number of command-line parameters like:
>   --note-proto=n_namesz,n_descsz,n_type,"name"
> 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.

-cary


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]