[patch] validate binary before use

Aleksandar Ristovski aristovski@qnx.com
Thu Dec 27 21:21:00 GMT 2012


On 12-12-27 04:13 PM, Jan Kratochvil wrote:
> On Thu, 27 Dec 2012 22:03:03 +0100, Aleksandar Ristovski wrote:
>> In any case, what I am trying to do does not disqualify build-id
>
> I understand that part but I find disappointing a feature designed
> specifically for this purpose and already deployed for 5+ years is being IIUC
> ignored.
>
>
>> (I'll use it in fact, if present).
>
> I do not see how you verify the NT_GNU_BUILD_ID content.

No, it's not done now in the current patch. I meant the new patch will.

>
>
>> Note also that I really want a solution that does *not* rely on
>> section headers but rather only on load-time required stuff.
>
> build-id specifically does not depend on any link-time data (sections) to be
> usable for runtime core generations.  It is (also) available from program
> header PT_NOTE as NT_GNU_BUILD_ID.

That is great, thanks.

---
Aleksandar



More information about the Gdb-patches mailing list