[PATCH] libdwfl: Fix and test aux_sym address_sync with relocated ELF

Mark Wielaard mjw at redhat.com
Mon Nov 18 22:41:33 UTC 2013


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  <jistone at redhat.com>
> +
> +	* dwfl_module_getdwarf.c (find_aux_address_sync): New function.
> +	(find_aux_sym): Use it.
> [...]
> +2013-11-18  Josh Stone  <jistone at redhat.com>
> +
> +	* 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



More information about the elfutils-devel mailing list