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: questions about objcopy and ld


Hi Ali,

Does objcopy adds a final 0 to the outfile? I use it, it seems that
one byte is extra.

No. At least I do not see why it would. Do you have a specific example that we could look at ?


When we create some sections by ld, does the size of these sections
have to be a multiple of a number?

It depends upon the section type and the target, but in general the answer is yes.


(some sort of alignment) and what is that number?

The alignment. The specific value for alignments varies with different sections and different targets. When the linker creates an output section it sets its alignment to largest alignment value of any of the input section whose contents are being mapped into that output section.


Cheers
  Nick



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