This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Trouble eliminating padding or alignments


On Fri, 2010-07-16 at 00:34 +0930, Alan Modra wrote:

> Generate a link map file.  That should tell you enough to figure out
> why the extra padding is added.

Aha! 

I'm getting this for the .text section:

.text           0x0000000000000000      0x238
 *(.text.unlikely .text.*_unlikely)
 *(.text .stub .text.* .gnu.linkonce.t.*)
 .text          0x0000000000000000      0x12f stage1/boot.o
                0x0000000000000004                BPB
 *fill*         0x000000000000012f        0x1 90909090
 .text          0x0000000000000130       0x99 libcommon.a(floppy16.o)
                0x0000000000000130                datasector
                0x0000000000000132                cluster
                0x0000000000000137                CHStoLBA
                0x000000000000014f                LBAtoCHS
                0x0000000000000177                SectorsRead
 *fill*         0x00000000000001c9        0x7 90909090
 .text          0x00000000000001d0       0x68 libcommon.a(msdosfs.o)
                0x00000000000001d0                load_root
                0x00000000000001f8                find_file
                0x0000000000000221                load_fat12
                0x0000000000000237                load_file

How can I eliminate these *fill* bytes? Is the linker intelligent enough
to discard routines that aren't referenced? 

Many thanks for pointing me in the right direction
-- 
http://www.munted.org.uk

One very high maintenance cat living here.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]