This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: ping: [patch 2/6] PIE: Attach binary even after ld.so re-prelinked underneath
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 5 Jul 2010 10:14:43 -0700
- Subject: Re: ping: [patch 2/6] PIE: Attach binary even after ld.so re-prelinked underneath
- References: <20100329161657.GA2940@host0.dyn.jankratochvil.net> <20100609150815.GB7183@host0.dyn.jankratochvil.net> <20100629182132.GS2595@adacore.com> <20100704101653.GB6875@host0.dyn.jankratochvil.net>
V> Therefore used some merged+modified comment:
Much clearer, thank you (and I'm continuing to learn as I go)...
> gdb/
> 2010-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
> Joel Brobecker <brobecker@adacore.com>
>
> * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
>
> gdb/testsuite/
> 2010-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
> Joel Brobecker <brobecker@adacore.com>
>
> * gdb.base/break-interp.exp (test_attach): Keep $interp changed. Move
OK with the tiny changes below.
> In most cases of a PIE running under valgrind there is no way how to find
^^^^^^^^^^^^^
no way to find
> # Formerly this test was testing only prelinking of $EXEC. As the
> # prelink command prelinks automatically even all $EXEC's libraries
automatically prelinks all of $EXEC's libraries,
(the comma is important)
> # even $INTERP got prelinked. Therefore we formerly had to
^^^ Therefore,
> # `[copy $interp_saved $interp]' to make $INTERP not affected by
> # this prelinking of $EXEC.
> #
> # But now we need to test even prelinking of $INTERP. We could
> # create a separate test to test just the $INTERP prelinking. For
> # the test simplicity we merged this test and the test above by not
^^^^ test simplicity, we merged [...]
> # restoring $INTERP after $EXEC prelink. $INTERP gets restored
> # later below.
--
Joel