Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Thiago Jung Bauermann <thiago.bauermann@gmail.com>
To: gdb@sourceware.org
Cc: Joel Brobecker <brobecker@adacore.com>
Subject: [7.0] PR/9723: gdb breakpoints silently fail on PIE binaries
Date: Mon, 20 Jul 2009 01:55:00 -0000	[thread overview]
Message-ID: <200907192257.08197.thiago.bauermann@gmail.com> (raw)

Hi,

One painful aspect of GDB right now is that it doesn't handle PIE (Position 
Independent Executable) and doesn't even recognize a PIE binary when it sees 
one. I have an action item for 7.0 which is to make GDB at least complain that 
it is being given such a binary and warn the user appropriately. That would be 
enough to close the bugzilla in the subject and ship 7.0 (as we have discussed 
before in this mailing list).

Then for 7.1 somebody could push upstream one of the two circulating patches 
which implement PIE support, and close PR/9174 (gdb can't handle PIE).

All this to say: can somebody save me some research time and tell in high 
level how can I recognize from looking at an ELF file that I'm dealing with a 
PIE binary (NOT a PIC library, of course)? Something like "see if the frob bit 
in the bozo section is set") is enough, I can go from there.
-- 
[]'s
Thiago Jung Bauermann


             reply	other threads:[~2009-07-20  1:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-20  1:55 Thiago Jung Bauermann [this message]
2009-07-20  4:13 ` Paul Pluzhnikov
2009-07-25  2:11   ` Thiago Jung Bauermann
2009-07-25  2:26     ` Daniel Jacobowitz
2009-07-25  9:56     ` Mark Kettenis

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=200907192257.08197.thiago.bauermann@gmail.com \
    --to=thiago.bauermann@gmail.com \
    --cc=brobecker@adacore.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