From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: glibc vs musl sizeof types
Date: Tue, 11 Mar 2014 13:16:52 +0100 [thread overview]
Message-ID: <20140311121652.GS7372@port70.net> (raw)
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)
next reply other threads:[~2014-03-11 12:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-11 12:16 Szabolcs Nagy [this message]
2014-03-11 18:26 ` Rich Felker
2014-03-11 19:29 ` John Spencer
2014-03-11 19:49 ` Szabolcs Nagy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140311121652.GS7372@port70.net \
--to=nsz@port70.net \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).