On Mon, 2013-11-18 at 14:34 -0800, Josh Stone wrote: > The aux_sym address_sync already worked with a full prelink, which has > .gnu.prelink_undo, but it failed on plain relocations with prelink -r. > > Now it uses the difference in ehdr.e_entry as a first offset guess, and > the tests confirm this seems to work fine.
Thanks to Jan Kratochvil for suggesting that trick on irc! > +2013-11-18 Josh Stone <[email protected]> > + > + * dwfl_module_getdwarf.c (find_aux_address_sync): New function. > + (find_aux_sym): Use it. > [...] > +2013-11-18 Josh Stone <[email protected]> > + > + * testfilebazdbg_plr.bz2: New testfile. > + * testfilebazmin_plr.bz2: Likewise. > + * Makefile.am (EXTRA_DIST): Add the above files. > + * run-dwflsyms.sh: Add prelink -r tests. Looks good to me. Thanks for the new testcases. Cute sed trick. Thanks, Mark
