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: ld's padding up with zeroes


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



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