|
From: Nicholas N. <nj...@ca...> - 2002-10-15 09:08:08
|
On 14 Oct 2002, Jeremy Fitzhardinge wrote: > Here's a patch which allows a skin to ask for data symbols to be > preserved. Excuse my ignorance, can someone explain what data symbols are, and why reading them fixes the si->offset mess? Thanks. N > It does 3 things: > - it adds a new data_syms flag to VG_(needs), so that only skins which > want them get them. > - it adds some new logic to vg_read_lib_symbols, which > 1. only expects to see segments with a 0 file offset > 2. traverses the ELF Phdrs, and includes all the mapped segments > into the SegInfo's address range > - by happy convenience, this also completely cleans up the si->offset > mess; there is no longer any dependence on knowing where the > executables are loaded; it can be derived from the ELF file itself. > The value of si->offset = si->start - phdr->p_vaddr. |