aboutsummaryrefslogtreecommitdiff
path: root/gdb/auxv.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-07-05 18:00:40 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-07-05 18:00:40 +0000
commit86e4bafc3b0bb0148b95807d37b36aae14cdf56c (patch)
treefae9aeadc3fef5cca2aa8c66596edfa5c6a48169 /gdb/auxv.c
parent3cd07d204baadc4b3d148a7494366fc92e7d42b1 (diff)
downloadgdb-86e4bafc3b0bb0148b95807d37b36aae14cdf56c.zip
gdb-86e4bafc3b0bb0148b95807d37b36aae14cdf56c.tar.gz
gdb-86e4bafc3b0bb0148b95807d37b36aae14cdf56c.tar.bz2
gdb/
* 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.
Diffstat (limited to 'gdb/auxv.c')
-rw-r--r--gdb/auxv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/auxv.c b/gdb/auxv.c
index 4fc5c9c..593b0c8 100644
--- a/gdb/auxv.c
+++ b/gdb/auxv.c
@@ -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)
{