From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30255 invoked by alias); 29 Sep 2011 17:57:37 -0000 Received: (qmail 30236 invoked by uid 22791); 29 Sep 2011 17:57:36 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 29 Sep 2011 17:57:21 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p8THvIte022001 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 29 Sep 2011 13:57:18 -0400 Received: from host1.jankratochvil.net (ovpn-116-16.ams2.redhat.com [10.36.116.16]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p8THvG8c028251 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 29 Sep 2011 13:57:18 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p8THvFbT020073; Thu, 29 Sep 2011 19:57:15 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p8THvE4e020072; Thu, 29 Sep 2011 19:57:14 +0200 Date: Thu, 29 Sep 2011 18:12:00 -0000 From: Jan Kratochvil To: Ulrich Weigand Cc: gdb-patches@sourceware.org, patches@linaro.org Subject: Re: [rfc, gdbserver] Disable address space randomization Message-ID: <20110929175714.GA18394@host1.jankratochvil.net> References: <201109212323.p8LNNTG1006616@d06av02.portsmouth.uk.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201109212323.p8LNNTG1006616@d06av02.portsmouth.uk.ibm.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-09/txt/msg00551.txt.bz2 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