Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kees Cook <kees@outflux.net>
To: gdb-patches@sourceware.org
Subject: status of PIE support?
Date: Thu, 08 May 2008 16:10:00 -0000	[thread overview]
Message-ID: <20080508054526.GG12850@outflux.net> (raw)

Hello!  I'm curious what the current status PIE support is?  Many distros
have been carrying variations on PIE support patches for several releases
now, and I'd like to help get them into the mainline gdb.  As I understand
it, the code was originally from Elena Zannoni and ported by various
people including Jan Kratochvil.

I've trivially ported the patches that are currently in Ubuntu's 6.8
gdb to the current gdb CVS.  Since they're large, I'll just link to
them[1][2].

The older PIE CVS branches seem pretty far out of date:
 "ezannoni_pie-20030916"
 "ezannoni_pie-20040323"

What would be required to get this code in shape for a commit?  I'm
currently fairly unfamiliar with gdb internals, but I'm willing to
learn.  :)

Thanks,

-Kees

[1] http://outflux.net/gdb/pie-support.patch
 gdb/gdb/Makefile.in   |    2 
 gdb/gdb/amd64-tdep.c  |   66 ++++++++-
 gdb/gdb/auxv.c        |   20 +-
 gdb/gdb/auxv.h        |    4 
 gdb/gdb/breakpoint.c  |   61 ++++++++
 gdb/gdb/breakpoint.h  |    5 
 gdb/gdb/dwarf2read.c  |    2 
 gdb/gdb/elfread.c     |    2 
 gdb/gdb/infrun.c      |    5 
 gdb/gdb/objfiles.c    |   17 ++
 gdb/gdb/solib-svr4.c  |  342 ++++++++++++++++++++++++++++++++++++++++++++++----
 gdb/gdb/solib.c       |  107 +++++++++++----
 gdb/gdb/solist.h      |   10 +
 gdb/gdb/symfile-mem.c |    2 
 gdb/gdb/symfile.c     |   22 ++-
 gdb/gdb/varobj.c      |   56 ++++++++
 gdb/gdb/varobj.h      |    2 
 17 files changed, 644 insertions(+), 81 deletions(-)

[2] http://outflux.net/gdb/pie-testsuite.patch
 gdb/gdb/testsuite/configure            |    3 
 gdb/gdb/testsuite/configure.ac         |    2 
 gdb/gdb/testsuite/gdb.pie/Makefile.in  |   19 
 gdb/gdb/testsuite/gdb.pie/attach.c     |   20 
 gdb/gdb/testsuite/gdb.pie/attach.exp   |  432 ++++++++++++++
 gdb/gdb/testsuite/gdb.pie/attach2.c    |   24 
 gdb/gdb/testsuite/gdb.pie/break.c      |  146 ++++
 gdb/gdb/testsuite/gdb.pie/break.exp    |  973 +++++++++++++++++++++++++++++++++
 gdb/gdb/testsuite/gdb.pie/break1.c     |   44 +
 gdb/gdb/testsuite/gdb.pie/corefile.exp |  243 ++++++++
 gdb/gdb/testsuite/gdb.pie/coremaker.c  |  142 ++++
 11 files changed, 2046 insertions(+), 2 deletions(-)

-- 
Kees Cook                                            @outflux.net


             reply	other threads:[~2008-05-08  5:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-08 16:10 Kees Cook [this message]
2008-05-08 19:00 ` Daniel Jacobowitz
2008-05-08 19:50   ` Kees Cook
2008-05-08 20:22     ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080508054526.GG12850@outflux.net \
    --to=kees@outflux.net \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox