From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4644 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: glibc vs musl sizeof types Date: Tue, 11 Mar 2014 13:16:52 +0100 Message-ID: <20140311121652.GS7372@port70.net> 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 1394540215 28637 80.91.229.3 (11 Mar 2014 12:16:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Mar 2014 12:16:55 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4648-gllmg-musl=m.gmane.org@lists.openwall.com Tue Mar 11 13:17:05 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 1WNLcH-0004Ke-7I for gllmg-musl@plane.gmane.org; Tue, 11 Mar 2014 13:17:05 +0100 Original-Received: (qmail 8089 invoked by uid 550); 11 Mar 2014 12:17:03 -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 8081 invoked from network); 11 Mar 2014 12:17:03 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4644 Archived-At: i did sizeof comparisions of most structs on i386, x86_64, mips, arm, powerpc using embedian cross compilers vs musl-cross (embedian toolchain is old though: gcc-4.4, glibc-2.13, binutils-2.20) http://nsz.repo.hu/git/?p=musl-tables;a=blob;f=data/sizeof.arm.diff http://nsz.repo.hu/git/?p=musl-tables;a=blob;f=data/sizeof.i386.diff http://nsz.repo.hu/git/?p=musl-tables;a=blob;f=data/sizeof.mips.diff http://nsz.repo.hu/git/?p=musl-tables;a=blob;f=data/sizeof.powerpc.diff http://nsz.repo.hu/git/?p=musl-tables;a=blob;f=data/sizeof.x86_64.diff struct rusage and struct sysinfo are known to have extra space on musl, struct tftphdr is not "packed" on musl and struct crypt_data is huge on glibc other diffs may or may not be an issue the test code if you want to try it on other arch: http://nsz.repo.hu/git/?p=musl-tables;a=blob;f=sizeof.c struct user_* are not avail on most archs (other than x86) nor sys/reg.h so those should be commented out (cflags is -std=gnu99, the diff is diff -U1 glibc musl >sizeof.diff)