From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9716 invoked by alias); 11 Nov 2013 17:48:23 -0000 Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org Received: (qmail 9706 invoked by uid 89); 11 Nov 2013 17:48:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,RDNS_NONE,URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: relay1.mentorg.com Received: from Unknown (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 11 Nov 2013 17:48:21 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1Vfvao-0005kC-FH from joseph_myers@mentor.com ; Mon, 11 Nov 2013 09:48:06 -0800 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 11 Nov 2013 09:48:06 -0800 Received: from digraph.polyomino.org.uk (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.2.247.3; Mon, 11 Nov 2013 17:48:03 +0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.76) (envelope-from ) id 1Vfvak-0006Ew-NP; Mon, 11 Nov 2013 17:48:02 +0000 Date: Mon, 11 Nov 2013 17:48:00 -0000 From: "Joseph S. Myers" To: Chung-Lin Tang CC: Chris Metcalf , "libc-ports@sourceware.org" , Andrew Pinski Subject: Re: struct statfs/statfs64 in linux-generic In-Reply-To: <527F42AF.8060204@codesourcery.com> Message-ID: References: <52774A2F.5010505@codesourcery.com> <527BF01B.9080704@tilera.com> <527F42AF.8060204@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-SW-Source: 2013-11/txt/msg00006.txt.bz2 On Sun, 10 Nov 2013, Chung-Lin Tang wrote: > I think I found my problem, which is more simpler than I thought: unlike > the majority of targets, 64-bit types are 4-byte aligned under Nios II, > which causes a 4-byte difference between the glibc/kernel structure > definitions because the kernel one doesn't have > __attribute__((aligned(8))) forced on to it. > > Stack alignment is 4-bytes as well in nios2, so I'll probably be > maintaining that and using a specific nios2/bits/statfs.h header without > the double-word alignment bits. Are you sure this is the only place in the kernel/userspace ABI where linux-generic is assuming natural alignment? -- Joseph S. Myers joseph@codesourcery.com