bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gdb and PIE binaries


From: Brent W. Baccala
Subject: Re: gdb and PIE binaries
Date: Tue, 22 Nov 2016 16:06:18 -1000

On Fri, Nov 11, 2016 at 7:17 AM, Samuel Thibault <samuel.thibault@gnu.org> wrote:
Hello,

Debian is pushing more and more PIE builds, so that address
randomization can be done. However, on GNU/Hurd, gdb can't work with
core files from processes running PIE programs, so one has to pass
CFLAGS=-no-pie etc. to be able to debug programs, it'll become more and
more problematic.

I've found that I can't even debug PIE executables with gdb, let alone core files.

I encountered this problem when trying to debug gdb on itself.  Downloading the gdb source tree and building it with "dpkg-buildpackage -b" produced a PIE executable that I couldn't set breakpoints on properly.  The Debian /usr/bin/gdb, though, is not PIE, which makes me wonder if someone (Samuel?) is compiling our Debian packages without PIE, to avoid this problem.

    agape
    brent
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]