* auxv.c (memory_xfer_auxv): Update attach comment.
	* solib-svr4.c (svr4_special_symbol_handling): Remove the call to
	svr4_relocate_main_executable.
	(svr4_solib_create_inferior_hook): Make the call to
	svr4_relocate_main_executable unconditional.

gdb/testsuite/
	* gdb.base/attach-pie-misread.exp, gdb.base/attach-pie-misread.c: New.
	* gdb.base/break-interp.exp (reach, test_core, test_ld): Require each
	displacement message exactly once.
This commit is contained in:
Jan Kratochvil 2010-07-05 18:00:40 +00:00
parent 3cd07d204b
commit 86e4bafc3b
7 changed files with 281 additions and 22 deletions

View file

@ -208,8 +208,10 @@ memory_xfer_auxv (struct target_ops *ops,
gdb_assert (readbuf || writebuf);
/* ld_so_xfer_auxv is the only function safe for virtual executables being
executed by valgrind's memcheck. As using ld_so_xfer_auxv is problematic
during inferior startup GDB does call it only for attached processes. */
executed by valgrind's memcheck. Using ld_so_xfer_auxv during inferior
startup is problematic, because ld.so symbol tables have not yet been
relocated. So GDB uses this function only when attaching to a process.
*/
if (current_inferior ()->attach_flag != 0)
{