From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1231 Path: news.gmane.org!not-for-mail From: John Spencer Newsgroups: gmane.linux.lib.musl.general Subject: Re: Possible ARM struct stat problem. Date: Tue, 26 Jun 2012 04:15:25 +0200 Message-ID: <4FE91B3D.2010905@barfooze.de> References: <2314318.NDqLURy4mK@main.pennware.com> <20120527194319.GF163@brightrain.aerifal.cx> 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: dough.gmane.org 1340676310 1831 80.91.229.3 (26 Jun 2012 02:05:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 26 Jun 2012 02:05:10 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1232-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jun 26 04:05:09 2012 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 1SjL9Q-00016i-Lk for gllmg-musl@plane.gmane.org; Tue, 26 Jun 2012 04:05:08 +0200 Original-Received: (qmail 16150 invoked by uid 550); 26 Jun 2012 02:05:08 -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 16139 invoked from network); 26 Jun 2012 02:05:08 -0000 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110221 SUSE/3.1.8 Mail/1.0 In-Reply-To: <20120527194319.GF163@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:1231 Archived-At: On 05/27/2012 09:43 PM, Rich Felker wrote: > On Sun, May 27, 2012 at 01:35:07PM -0500, Richard Pennington wrote: >> Hi, >> >> I think a found a problem with the struct stat definition for the ARM. It >> needed a bit more padding. I've attached a diff and wrote about it on my blog >> if you'd like more information. >> >> http://ellcc.org/blog/?p=121 > This looks like a clang bug. Per the ABI, long long has 8-byte > alignment on ARM. Thus, the structure definition musl has right now > will give the right layout to match the ABI, and in fact it works > perfectly when compiled with GCC. i have the same issue with gcc 4.2.4. hunting the bug costed me hours. > I'm not entirely opposed to putting the explicit padding in there, > since this is an arch-specific structure anyway, but I think you > should check your compiler. The same issue might come up elsewhere and > might not be so easy to work around. > please apply the explicit padding.