This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Trouble eliminating padding or alignments
- From: John Reiser <jreiser at bitwagon dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Fri, 16 Jul 2010 06:55:03 -0700
- Subject: Re: Trouble eliminating padding or alignments
- References: <1279285541.22252.12.camel@lithium.local.net>
$ readelf --section-headers foo.o
Section Headers:
[Nr] Name Type Address Offset
Size EntSize Flags Link Info Align
[ 1] .text PROGBITS 0000000000000000 00000040
0000000000000006 0000000000000000 AX 0 0 4
Notice the 'Align' of 4. Keep trying different compiler options
until the 'Align' is 1 for floppy16.o and msdosfs.o and anything
else where you object to the preceding '*fill*'.
--