This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/8] v2 - validate binary before use
- From: Aleksandar Ristovski <ARistovski at qnx dot com>
- To: <gdb-patches at sourceware dot org>
- Cc: <jan dot kratochvil at redhat dot com>, Aleksandar Ristovski <ARistovski at qnx dot com>
- Date: Tue, 9 Apr 2013 11:27:37 -0400
- Subject: [PATCH 0/8] v2 - validate binary before use
Hello,
This patchset is updated patchset for using build-id to validate
symbol file before use.
I started the new thread as it unifies two other threads
(see References below).
Summary:
Patchset introduces validation of symbol files prior to their use.
If validation fails, symbol file is discarded.
Validation is performed by comparing build-id from the target memory
and that from the symbol-file.
There are two methods for fetching build-id from the target memory:
- using TARGET_OBJECT_LIBRARIES_SVR4 if target supports it
- reading build-id directly if the above method is not supported.
Core support:
- core will use second method. Note, however, that due to (at least
on ubuntu) not dumping page containing buid-id in the core, the
validation can not be performed (it will always default to valid).
This is misfortunate but outside the scope of this patch.
References:
http://sourceware.org/ml/gdb-patches/2013-04/msg00153.html
http://sourceware.org/ml/gdb-patches/2013-04/msg00113.html
Thank you,
Aleksandar Ristovski
QNX Software Systems