From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5107 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Broken GCC versions: 4.8.2 and 4.9.0 Date: Sat, 10 May 2014 21:05:03 -0400 Message-ID: <20140511010503.GA6502@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1399770326 17814 80.91.229.3 (11 May 2014 01:05:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 May 2014 01:05:26 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5112-gllmg-musl=m.gmane.org@lists.openwall.com Sun May 11 03:05:19 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1WjICc-00029N-Vs for gllmg-musl@plane.gmane.org; Sun, 11 May 2014 03:05:19 +0200 Original-Received: (qmail 25973 invoked by uid 550); 11 May 2014 01:05:16 -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 25957 invoked from network); 11 May 2014 01:05:16 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:5107 Archived-At: It's come to my attention that GCC versions 4.8.2 and 4.9.0 are performing invalid optimizations that result in a broken musl libc.a/libc.so. It's not clear yet whether there's a good workaround, or whether we should attempt to work around the problem, so for now, please just be aware that these versions of GCC cannot be used to compile musl. Using them to compile programs against musl should not be a problem. I'll post more details later. The short version is that it's making incorrect assumptions about the reachability of global variables that have a local weak definition and an external strong one. Rich