This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc, gdbserver] Disable address space randomization
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: gdb-patches at sourceware dot org, patches at linaro dot org
- Date: Thu, 29 Sep 2011 19:57:14 +0200
- Subject: Re: [rfc, gdbserver] Disable address space randomization
- References: <201109212323.p8LNNTG1006616@d06av02.portsmouth.uk.ibm.com>
Hi Ulrich,
On Wed, 21 Sep 2011 18:23:34 +0200, Ulrich Weigand wrote:
> At this point this happens unconditionally, whenever the kernel
> supports the personality system call. If necessary, it would
> be possible to make this configurable by adding a command line
> argument to gdbserver ...
I do not find too great it cannot be disabled. This makes inferior problems
reproducibility worse. There should be command-line option for legacy and/or
remote command for extended mode but that is obvious.
Still it is probably better even unconditionally.
> Tested on i386-linux. Fixes a couple of test failures on Ubuntu.
I guess it has PIE by default? I am aware some PIE corner cases need more
fixes (and Fedora contains some more PIE patches even formerly posted but
those patches are not well made).
Thanks,
Jan