ld's padding up with zeroes
Nick Clifton
nickc@redhat.com
Mon Sep 11 14:37:00 GMT 2006
Hi Steffen,
> I have linked two short object files a.o and b.o into one binary c.bin.
> The first part of c.bin consists of machine code. The second part of
> c.bin consists of zeroes.
>
> Apparantely, ld padds up the file c.bin with zeroes until it reaches
> 1024kbytes. Is there a switch to avoid this?
This sounds like a pagesize problem. Try linking with the -N switch.
Cheers
Nick
More information about the Binutils
mailing list