This is the mail archive of the binutils@sources.redhat.com 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: Unreviewed patch


On Tue, Dec 03, 2002 at 10:08:14PM -0800, Jason R Thorpe wrote:
> On Wed, Dec 04, 2002 at 04:03:02PM +1030, Alan Modra wrote:
> 
>  > +       /* By sorting the orphan after place->os, we effectively changed
>  > + 	 the size of that section.  Adjust the size of the section to
>  > + 	 reflect the additional output.  */
>  > 
>  > This I don't like.  An orphan goes into its own output section.  It's
>  > wrong to adjust the size of the previous non-orphan output section.
> 
> Well, then can you suggest another way to make the right thing happen
> for SIZEOF in the presence of orphans?

I reckon SIZEOF is behaving correctly now..  You could set your lma from
the vma, like

  .data : AT (ADDR (.data) + 0x10000000) { *(.data) }

That still doesn't solve your orphan section problem though.  :-(

-- 
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]