size_input_section calcs output_offset incorrectly for merged sections

Alan Modra
Mon Jan 7 18:27:00 GMT 2008

On Sat, Jan 05, 2008 at 08:59:04AM -0800, Michael Eager wrote:
> It seems to me that output_offset should be the same in both
> cases.  I've run a couple tests which work with this change.
> Does this seem correct?

No.  The code is correct for excluded sections in general.  You
shouldn't be using symbols from merged sections directly.  See
_bfd_merged_section_offset, _bfd_elf_rel{,a}_local_sym.

Alan Modra
Australia Development Lab, IBM

More information about the Binutils mailing list