map_segments and PR 2754

Alan Modra amodra@bigpond.net.au
Fri Jun 23 02:53:00 GMT 2006


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



More information about the Binutils mailing list