This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patchv3 7/8] Validate symbol file using build-id
- From: Pedro Alves <palves at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org, Aleksandar Ristovski <ARistovski at qnx dot com>
- Date: Mon, 03 Mar 2014 13:57:55 +0000
- Subject: Re: [patchv3 7/8] Validate symbol file using build-id
- Authentication-results: sourceware.org; auth=none
- References: <20140227213334 dot GH21121 at host2 dot jankratochvil dot net> <53108EF7 dot 3000708 at redhat dot com> <20140228202009 dot GA23476 at host2 dot jankratochvil dot net> <5310F2B8 dot 7070204 at redhat dot com> <20140302184915 dot GA12597 at host2 dot jankratochvil dot net>
On 03/02/2014 06:49 PM, Jan Kratochvil wrote:
> I find it more appropriate place that solib-svr4.c as it is a place where
> person implementing the feature will place the code - without possibly looking
> at the definition of this field. But it all does not matter too much.
>
> Added for the 'build_idsz' field:
> Reading target memory should be done by following execution view
> of the binary (following program headers in the case of ELF).
> Computing address from the linking view (following ELF section
> headers) may give incorrect build-id memory address despite the
> symbols still match.
> Such an example is a prelinked vs. unprelinked i386 ELF file. */
Thanks.
--
Pedro Alves