|
Message-ID: <1541470.svcjxmq1Ff@main.pennware.com> Date: Mon, 28 May 2012 08:13:48 -0500 From: Richard Pennington <rich@...nware.com> To: musl@...ts.openwall.com Subject: Re: Possible ARM struct stat problem. On Sunday, May 27, 2012 03:43:19 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'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. > > Let me know what you find. > > Rich You were right, there is a problem with my compiler's ABI handling. I've patched it and have removed the padding. Thanks. -Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.