some question about output section
Alan Modra
amodra@gmail.com
Wed May 11 07:18:00 GMT 2011
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
More information about the Binutils
mailing list