This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

[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



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