ls returns large file sizes

Jonathan Lester jlester at
Thu Dec 22 04:53:21 UTC 2005

I'm not actually specifying the endian-ness via any compiler flags, so
everything should be compiled for little endian:

vmlinux: ELF 32-bit LSB executable, ARM, version 1 (ARM), statically
linked, not stripped
busybox: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux
2.0.10, statically linked, stripped ELF 32-bit LSB shared object, ARM, version 1 (ARM), not

[arm-readelf also says all the data sections are little endian]
Is there any good way to test how the kernel and the library return the
'stat' structure to see if someone thinks they're supposed to use big


-----Original Message-----
From: Mike Frysinger [mailto:vapier at] 
Sent: Wednesday, December 21, 2005 8:31 PM
To: Jonathan Lester
Cc: busybox at
Subject: Re: ls returns large file sizes

On Wednesday 21 December 2005 23:21, Jonathan Lester wrote:
> Yeah the other binary I have is statically linked.

ok, thats what i suspected

according to your reports, it seems like glibc and the kernel disagree
as to 
how information is arranged in the 'stat' structure ... are you by
targeting big endian arm ?

More information about the busybox mailing list