This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: map_segments and PR 2754
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 23 Jun 2006 10:23:34 +0930
- Subject: Re: map_segments and PR 2754
- References: <m3u06d9meo.fsf@redhat.com>
On Thu, Jun 22, 2006 at 05:37:35PM +0100, Nick Clifton wrote:
> Would you care to take a look at PR 2754 ? With your new code for
> dynamically sizing the segment map the linker no longer seg faults,
> but it does trigger your 10 loop iteration limit, and I am not sure
> why.
a) sizeof_headers in link script
-> program_header_size unknown, so get_program_header_size
estimates two headers
b) _bfd_elf_map_sections_to_segments figures we need zero headers.
-> lay out sections again.
-> sizeof_headers again needed, and zero in program_header_size is
taken as uninitialized value, so go to (a).
--
Alan Modra
IBM OzLabs - Linux Technology Centre