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: size_input_section calcs output_offset incorrectly for merged sections


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	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077


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