From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.54)
	id 1EzjKf-0004dZ-3Y
	for garchives@archives.gentoo.org; Thu, 19 Jan 2006 23:36:45 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k0JNZhmZ012535;
	Thu, 19 Jan 2006 23:35:43 GMT
Received: from mail01.emarketsouth.com (mail01.emarketsouth.com [208.247.233.6])
	by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k0JNXgHi011143
	for <gentoo-dev@lists.gentoo.org>; Thu, 19 Jan 2006 23:33:42 GMT
Received: (qmail 7059 invoked by uid 399); 19 Jan 2006 23:34:11 -0000
Received: from unknown (HELO onyx) (64.192.54.4)
  by mail01.emarketsouth.com with SMTP; 19 Jan 2006 23:34:11 -0000
Subject: Re: [gentoo-dev] fix binary debug support, part elevenity billion
	1/2
From: solar <solar@gentoo.org>
To: gentoo-dev@lists.gentoo.org
In-Reply-To: <200601191756.47460.vapier@gentoo.org>
References: <200601150111.54995.vapier@gentoo.org>
	 <200601191756.47460.vapier@gentoo.org>
Content-Type: text/plain
Organization: Gentoo Linux
Date: Thu, 19 Jan 2006 18:33:02 -0500
Message-Id: <1137713582.21260.363.camel@onyx>
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@gentoo.org
Reply-to: gentoo-dev@lists.gentoo.org
Mime-Version: 1.0
X-Mailer: Evolution 2.2.3 
Content-Transfer-Encoding: 7bit
X-Archives-Salt: c0e13b91-ce71-45fb-94aa-673ea7713eaf
X-Archives-Hash: ff24ff6394d1d676652bbd6bda23d222

On Thu, 2006-01-19 at 17:56 -0500, Mike Frysinger wrote:
DEBUG_CFLAGS=DEBUG_CXXFLAGS="-O -g"

Mike, 
how about
DEBUG_CFLAGS=DEBUG_CXXFLAGS="-O -g -fno-stack-protector -fno-pie"

All Gentoo properly supported toolchains support the last two flags and 
it ensures that debugging almost works for hardened users too.
I'd say I could just run with the extra
flags in the hardened/* profiles but it seems a good portion of the 
users these days seem to be vanilla users using 'gcc-config > 1'


-- 
solar <solar@gentoo.org>
Gentoo Linux

-- 
gentoo-dev@gentoo.org mailing list