This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: size_input_section calcs output_offset incorrectly for merged sections
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Michael Eager <eager at eagercon dot com>
- Cc: binutils at sourceware dot org
- Date: Mon, 7 Jan 2008 10:28:42 +1030
- Subject: Re: size_input_section calcs output_offset incorrectly for merged sections
- References: <477FB758.1080702@eagercon.com>
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