From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from [140.105.134.102] (helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.43)
	id 1DkB5G-0003HW-HY
	for garchives@archives.gentoo.org; Mon, 20 Jun 2005 01:28:18 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j5K1Q1dj003251;
	Mon, 20 Jun 2005 01:26:01 GMT
Received: from maggie.cs.pitt.edu (maggie.cs.pitt.edu [130.49.220.148])
	by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j5K1Q0xE017395
	for <gentoo-hardened@lists.gentoo.org>; Mon, 20 Jun 2005 01:26:01 GMT
Received: from [192.168.1.104] (c-24-3-152-1.hsd1.pa.comcast.net [24.3.152.1])
	(authenticated bits=0)
	by maggie.cs.pitt.edu (8.13.3/8.13.3) with ESMTP id j5K1QXMC027406
	(version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO)
	for <gentoo-hardened@lists.gentoo.org>; Sun, 19 Jun 2005 21:26:33 -0400
	(envelope-from jalst114@cs.pitt.edu)
Precedence: bulk
List-Post: <mailto:gentoo-hardened@lists.gentoo.org>
List-Help: <mailto:gentoo-hardened+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-hardened+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-hardened+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-hardened.gentoo.org>
X-BeenThere: gentoo-hardened@gentoo.org
Reply-to: gentoo-hardened@lists.gentoo.org
Mime-Version: 1.0 (Apple Message framework v622)
In-Reply-To: <200506191728.37744.rutski89@gmail.com>
References: <42B5BF3D.7010708@telia.com> <200506191728.37744.rutski89@gmail.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed
Message-Id: <a7635832a8f201c4d7da4b241477653b@cs.pitt.edu>
Content-Transfer-Encoding: 7bit
From: James Larkby-Lahet <jalst114@cs.pitt.edu>
Subject: Re: [gentoo-hardened] -fforce-addr in CFLAGS.
Date: Sun, 19 Jun 2005 21:26:31 -0400
To: gentoo-hardened@lists.gentoo.org
X-Mailer: Apple Mail (2.622)
X-Spam-Score: -101.148/8 BAYES_00,FROM_ENDS_IN_NUMS,USER_IN_WHITELIST SA-version=3.000002
X-Scanned-By: MIMEDefang 2.51 on 130.49.220.148
X-Archives-Salt: 2973d234-ee69-4883-a1cb-718d92c6c696
X-Archives-Hash: 84628983f63b5aab1116074ea513450c


On Jun 19, 2005, at 5:28 PM, Patrick Rutkowski wrote:

> On Sunday 19 June 2005 02:53 pm, Simon Strandman wrote:
>> I just checked make.defaults for the x86 hardened profile and it has
>> CFLAGS="-O2 -mcpu=i386 -pipe -fforce-addr".
>>
>> Why the -fforce-addr? Does it have any impact on security?
>>
>> I use hardened on my home server but I don't have -fforce-addr in its
>> CFLAGS. Should I add it?
>>
>> --
>> Simon Strandman <simon.strandman@telia.com>
> The ggc man page stages
>
> -fforce-addr
>  Force memory address constants to be copied into registers before 
> doing
> arithmetic on them. This may produce better code just as -fforce-mem 
> may.

Anyone know, better with respect to what? (ie faster instructions, 
nicer to the cache, "more" correct...)

james

-- 
gentoo-hardened@gentoo.org mailing list