On Mon, Aug 14, 2006 at 05:41:26PM -0700, H. J. Lu wrote: > - p->p_type = PT_NULL; > + /* elf_modify_segment_map will delete empty PT_LOAD > + segments. */ > + p->p_type = PT_LOAD; But elf_modify_segment_map is called *before* assign_file_positions_for_non_load_sections. -- Alan Modra IBM OzLabs - Linux Technology Centre