|
From: Jeremy F. <je...@go...> - 2002-10-14 22:53:33
|
Here's a patch which allows a skin to ask for data symbols to be preserved. 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. J |