Fix resolving ELF symbols for live PIDs with deleted files

For deleted shared library files the offsets to the symbol table were
calculated wrongly from the phdrs because the main_bias wasn't taken into
account.

Formerly shared libraries did not get resolved properly:
	#2  0x00007fc4d86c56d6
	#3  0x0000000000400938 main

Fixed elfutils produce:
	#2  0x00007f61094876d6 libfunc
	#3  0x0000000000400938 main

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
diff --git a/tests/ChangeLog b/tests/ChangeLog
index dce6ebe..3f12728 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,12 @@
+2014-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	* Makefile.am (check_PROGRAMS): Add deleted and deleted-lib.so.
+	(TESTS, EXTRA_DIST): Add run-deleted.sh.
+	(deleted_LDADD, deleted_lib_so_LDFLAGS, deleted_lib_so_CFLAGS): New.
+	* deleted-lib.c: New file.
+	* deleted.c: New file.
+	* run-deleted.sh: New file.
+
 2014-06-15  Mark Wielaard  <mjw@redhat.com>
 
 	* backtrace.c (frame_callback): Error on seeing more than 16 frames.