From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6456 Path: news.gmane.org!not-for-mail From: John Spencer Newsgroups: gmane.linux.lib.musl.general Subject: Re: fixing -fPIE + -fstack-protector-all Date: Thu, 06 Nov 2014 13:36:06 +0100 Message-ID: <545B6B36.6060806@barfooze.de> References: <545A414F.8000407@barfooze.de> <20141105154303.GV22465@brightrain.aerifal.cx> <545B5F6D.4090108@opensource.dyc.edu> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1415277488 11337 80.91.229.3 (6 Nov 2014 12:38:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Nov 2014 12:38:08 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6469-gllmg-musl=m.gmane.org@lists.openwall.com Thu Nov 06 13:38:01 2014 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XmMK8-0006lm-Mg for gllmg-musl@m.gmane.org; Thu, 06 Nov 2014 13:38:00 +0100 Original-Received: (qmail 1715 invoked by uid 550); 6 Nov 2014 12:37:59 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 1707 invoked from network); 6 Nov 2014 12:37:58 -0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: <545B5F6D.4090108@opensource.dyc.edu> Xref: news.gmane.org gmane.linux.lib.musl.general:6456 Archived-At: Anthony G. Basile wrote: > On 11/05/14 10:43, Rich Felker wrote: >> However, this proposed solution breaks one odd corner case: static >> linking when all the source files were compiled with -fPIC or -fPIE. >> In that case, there would be no references to __stack_chk_fail, only >> to __stack_chk_fail_local, and thereby __init_ssp would not get >> linked, and a zero canary would be used. > > I would rather not see this solution. > why ?