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: map_segments and PR 2754


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


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