From: John Moser <john.r.moser@gmail.com>
To: gdb@sourceware.org
Subject: GDB pie
Date: Thu, 24 Aug 2006 23:48:00 -0000 [thread overview]
Message-ID: <1156463298.7320.9.camel@localhost> (raw)
[-- Attachment #1: Type: text/plain, Size: 851 bytes --]
It seems right now I can't get gdb to debug a program compiled with gcc
as:
gcc -fpic -fpie -ggdb pie.c -o pie
Somewhere there were some patches floating around that allowed gdb to
handle position independent executables; but I can't find them* and
don't know if they're up to date.
Anyone have any ideas on this? I know the patches are out there
somewhere, it'd be nice if whoever wrote them worked into getting them
into mainline, assuming they're still maintained. Using PIE binaries is
a security feature that can be found in RedHat and Gentoo; it's
recommended to build the entire system PIE by the PaX project as well.
*Google: gdb "position independent executable" patch; gdb "position
independent executable"; gdb position independent executable; gdb pie
patch; gdb pie
--
John Moser <john.r.moser@gmail.com>
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 827 bytes --]
next reply other threads:[~2006-08-24 23:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-24 23:48 John Moser [this message]
2006-08-25 0:08 ` Daniel Jacobowitz
2006-08-25 0:13 ` Elena Zannoni
2006-08-25 0:21 ` Daniel Jacobowitz
2006-08-25 0:28 ` Elena Zannoni
2006-08-25 0:33 ` John Moser
2006-08-25 0:37 ` Elena Zannoni
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=1156463298.7320.9.camel@localhost \
--to=john.r.moser@gmail.com \
--cc=gdb@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