* GDB pie
@ 2006-08-24 23:48 John Moser
2006-08-25 0:08 ` Daniel Jacobowitz
0 siblings, 1 reply; 7+ messages in thread
From: John Moser @ 2006-08-24 23:48 UTC (permalink / raw)
To: gdb
[-- 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 --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: GDB pie
2006-08-24 23:48 GDB pie John Moser
@ 2006-08-25 0:08 ` Daniel Jacobowitz
2006-08-25 0:13 ` Elena Zannoni
0 siblings, 1 reply; 7+ messages in thread
From: Daniel Jacobowitz @ 2006-08-25 0:08 UTC (permalink / raw)
To: John Moser; +Cc: gdb
On Thu, Aug 24, 2006 at 07:48:18PM -0400, John Moser wrote:
> 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.
Look for the two branches in the CVS repository whose name contains
"pie". Elena was working on this, but ran out of time, and no longer
works on GDB. That's all I know about it.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: GDB pie
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:33 ` John Moser
0 siblings, 2 replies; 7+ messages in thread
From: Elena Zannoni @ 2006-08-25 0:13 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: John Moser, gdb
I don't??
John, have a look at the redhat gdb rpm, the patches are in there.
Daniel Jacobowitz writes:
> On Thu, Aug 24, 2006 at 07:48:18PM -0400, John Moser wrote:
> > 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.
>
> Look for the two branches in the CVS repository whose name contains
> "pie". Elena was working on this, but ran out of time, and no longer
> works on GDB. That's all I know about it.
>
> --
> Daniel Jacobowitz
> CodeSourcery
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: GDB pie
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
1 sibling, 1 reply; 7+ messages in thread
From: Daniel Jacobowitz @ 2006-08-25 0:21 UTC (permalink / raw)
To: Elena Zannoni; +Cc: John Moser, gdb
On Thu, Aug 24, 2006 at 08:08:47PM -0400, Elena Zannoni wrote:
>
> I don't??
Sorry, I thought you were entirely busy with SystemTap/Frysk; I haven't
heard from you on this list in ages. Good to see you, and I apologize.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: GDB pie
2006-08-25 0:21 ` Daniel Jacobowitz
@ 2006-08-25 0:28 ` Elena Zannoni
0 siblings, 0 replies; 7+ messages in thread
From: Elena Zannoni @ 2006-08-25 0:28 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: Elena Zannoni, John Moser, gdb
Daniel Jacobowitz writes:
> On Thu, Aug 24, 2006 at 08:08:47PM -0400, Elena Zannoni wrote:
> >
> > I don't??
>
> Sorry, I thought you were entirely busy with SystemTap/Frysk; I haven't
> heard from you on this list in ages. Good to see you, and I apologize.
>
> --
> Daniel Jacobowitz
> CodeSourcery
that's ok, I am still hanging around here, but yes, not much time to do other
work atm.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: GDB pie
2006-08-25 0:13 ` Elena Zannoni
2006-08-25 0:21 ` Daniel Jacobowitz
@ 2006-08-25 0:33 ` John Moser
2006-08-25 0:37 ` Elena Zannoni
1 sibling, 1 reply; 7+ messages in thread
From: John Moser @ 2006-08-25 0:33 UTC (permalink / raw)
To: Elena Zannoni; +Cc: Daniel Jacobowitz, gdb
[-- Attachment #1: Type: text/plain, Size: 1177 bytes --]
On Thu, 2006-08-24 at 20:08 -0400, Elena Zannoni wrote:
> I don't??
>
> John, have a look at the redhat gdb rpm, the patches are in there.
>
Thanks Elena. Any chance these can go into mainline, or are there still
stability issues etc? I'm having trouble with it on Ubuntu, I can talk
them into taking the patches from the RHAT SRPM but it would be
beneficial to have this working everywhere for free....
>
> Daniel Jacobowitz writes:
> > On Thu, Aug 24, 2006 at 07:48:18PM -0400, John Moser wrote:
> > > 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.
> >
> > Look for the two branches in the CVS repository whose name contains
> > "pie". Elena was working on this, but ran out of time, and no longer
> > works on GDB. That's all I know about it.
> >
> > --
> > Daniel Jacobowitz
> > CodeSourcery
--
John Moser <john.r.moser@gmail.com>
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: GDB pie
2006-08-25 0:33 ` John Moser
@ 2006-08-25 0:37 ` Elena Zannoni
0 siblings, 0 replies; 7+ messages in thread
From: Elena Zannoni @ 2006-08-25 0:37 UTC (permalink / raw)
To: John Moser; +Cc: Elena Zannoni, Daniel Jacobowitz, gdb
Yeah, I'll see if I can get somebody in the team to submit the patches
for inclusion.
John Moser writes:
> On Thu, 2006-08-24 at 20:08 -0400, Elena Zannoni wrote:
> > I don't??
> >
> > John, have a look at the redhat gdb rpm, the patches are in there.
> >
>
> Thanks Elena. Any chance these can go into mainline, or are there still
> stability issues etc? I'm having trouble with it on Ubuntu, I can talk
> them into taking the patches from the RHAT SRPM but it would be
> beneficial to have this working everywhere for free....
>
> >
> > Daniel Jacobowitz writes:
> > > On Thu, Aug 24, 2006 at 07:48:18PM -0400, John Moser wrote:
> > > > 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.
> > >
> > > Look for the two branches in the CVS repository whose name contains
> > > "pie". Elena was working on this, but ran out of time, and no longer
> > > works on GDB. That's all I know about it.
> > >
> > > --
> > > Daniel Jacobowitz
> > > CodeSourcery
> --
> John Moser <john.r.moser@gmail.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-08-25 0:37 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-24 23:48 GDB pie John Moser
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox