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: some question about output section


On Wed, May 11, 2011 at 02:27:09PM +0800, loody wrote:
> 2. I found if the LMA of 2 sections are quite close, the size of
> objcopy will get small, script1.
> But why if the LMA of third section is close to previous section, the
> size will still get big, script2?

Why do you think the LMAs are close?

Your scripts are setting LMA of a section to the end VMA of the
previous section.  I suspect that wasn't what you intended.
See ld.info LOADADDR and SIZEOF.

-- 
Alan Modra
Australia Development Lab, IBM


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