[PATCH 0/8] v2 - validate binary before use
Aleksandar Ristovski
ARistovski@qnx.com
Tue Apr 9 16:15:00 GMT 2013
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
More information about the Gdb-patches
mailing list