size_input_section calcs output_offset incorrectly for merged sections

Michael Eager
Mon Jan 7 23:57:00 GMT 2008

Alan Modra wrote:
> 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.

Thanks.  Calling _bfd_elf_rela_local_sym worked.

Michael Eager
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077

More information about the Binutils mailing list