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: PATCH: The current linker failed to generate working Linux kernel


On Wed, Aug 16, 2006 at 11:26:35AM -0700, H. J. Lu wrote:
> 	PR ld/3052
> 	* ldlang.c (lang_size_sections_1): Don't change lma unless the
> 	current vma overlaps the previous section.

Not OK.  The main reason I added this code was to make using overlays
simpler.  See http://sourceware.org/ml/binutils/2006-07/msg00314.html
Your patch means that all loaded sections after an overlay would again
need to have their lma specified, which is a pain.

I think the new default of keeping the lma to vma relationship the same
as previous sections is a much better default than setting lma equal to
vma.  (Of course, scripts that never specify lma will be unaffected
since the "previous section" will have lma equal to vma.)  The new
default should allow many ld scripts that specify lmas to be simplified.
Also, for orphan sections we've kept lma-vma the same as previous
sections since 2002-12-05.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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