[Top][All Lists]

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

gdb and PIE binaries

From: Samuel Thibault
Subject: gdb and PIE binaries
Date: Fri, 11 Nov 2016 18:17:43 +0100
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)


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.

AIUI, what gdb misses is simply the name of the files being mapped:
since the mappings may be random, it can't invent the file names.  It
has been also raised several times that it'd be nice that running vminfo
$pid (and /proc/$pid/maps) would show file names. AIUI, it'd be a matter
of adding a char[] field to struct vm_object inside mach, that the
creator of the VM object would set to whatever it seems fit, here the
file name.

What do people think about it?  Could somebody have a look at
implementing it?


reply via email to

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