PATCH: ld/3015: -z relro may create PT_NULL segment

Alan Modra amodra@bigpond.net.au
Tue Aug 15 09:03:00 GMT 2006


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



More information about the Binutils mailing list