This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: ld/3015: -z relro may create PT_NULL segment
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 15 Aug 2006 12:30:15 +0930
- Subject: Re: PATCH: ld/3015: -z relro may create PT_NULL segment
- References: <20060815004126.GA4991@lucon.org>
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