gdb and PIE binaries

2016-11-11 Thread Samuel Thibault
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. AIUI

Re: gdb and PIE binaries

2016-11-11 Thread Samuel Thibault
Samuel Thibault, on Fri 11 Nov 2016 18:17:43 +0100, wrote: > 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. I forgot to mention: on Linux, its provided in the core file through an NT_FILE note. Samuel

Re: Time for another round of releases

2016-11-11 Thread Manolis Ragkousis
Hello Samuel On 11/09/16 13:54, Samuel Thibault wrote: > Manolis Ragkousis, on Wed 09 Nov 2016 13:02:14 +0200, wrote: >> Now I only have problems with linking http://paste.lisp.org/display/330765 > > __gsync_wait and __gsync_wake are gnumach RPCs. They have been added to > gnumach quite a long ti

Re: gdb and PIE binaries

2016-11-11 Thread Roland McGrath
AFAIK gdb does not use fancy information like file-mapping stuff. NT_FILE is probably hard to support on the Hurd, since we don't have a way to go backwards from a memory object port to a file (let alone a file name). All GDB needs is to know where the PIE was loaded, so it can find the DT_DEBUG a